help with pw

Have questions about CoD2 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
Levcek
CJ Fan
CJ Fan
Posts: 129
Joined: March 7th, 2010, 11:37 am
Location: sLOVEnia, stajerska FTW

help with pw

Post by Levcek » November 14th, 2010, 9:31 am

well i made map and i got something shit -.-

problem: NO COSNOLE ON SERVER = I CANT INSERT PASSWORD -.-

Code: Select all

 main()
{
thread jelszosZar();

}


betuF(betu, add)
{
	while( true )
	{
		betu waittill("trigger", other);
		other.zar_jelszo += add;
		other iprintlnbold(add +" ^1Written!");
	}
}

betuDel(del)
{
	while( true )
	{
		del waittill("trigger", other);
		other.zar_jelszo = "";
		other iprintlnbold("^3Password Changed!");
	}
}


jelszosZar()
{
	
	b1 = getEnt("b_1", "targetname");
	b2 = getEnt("b_2", "targetname");
	b3 = getEnt("b_3", "targetname");
	b4 = getEnt("b_4", "targetname");
	b5 = getEnt("b_5", "targetname");
	b6 = getEnt("b_6", "targetname");
	b7 = getEnt("b_7", "targetname");
	b8 = getEnt("b_8", "targetname");
	b9 = getEnt("b_9", "targetname");
	bdel = getEnt("b_del", "targetname");
	benter = getEnt("b_enter", "targetname");
	bmit = getEnt("b_mit", "targetname");
	
	
	thread betuF(b1, 1);
	thread betuF(b2, 2);
	thread betuF(b3, 3);
	thread betuF(b4, 4);
	thread betuF(b5, 5);
	thread betuF(b6, 6);
	thread betuF(b7, 7);
	thread betuF(b8, 8);
	thread betuF(b9, 9);
	thread betuDel(bdel);
	
	
	while( true )
	{
		benter waittill("trigger", other);
		
			if( isdefined(other.zar_jelszo) )
			{
				if( other.zar_jelszo != "" )
				{
					if( other.zar_jelszo == getCvar("ur_area") )
					{
						other iPrintlnbold("^2Password Accepted...");
						bmit moveZ(80, 1.5, 0.7, 0.7);
						wait(3);
						
						// other.zar_jelszo = "";
						other iPrintlnbold("^1Close...");
						bmit moveZ(-80, 1.5, 0.7, 0.7);
					} else {
						other iprintlnbold("^1Wrong Password...");
					}
				} else {
					other iprintlnbold("^2Not specified password!");
				}
			} else {
				other iprintlnbold("^1Shot ^2Del ^1And Type ^2Password ^1Again");
			}
			
	}
	
}

btw its hungarian ^^

but i translated in english


so idk how to make the password script for just 1 PW

not with cvar ^^
__________________________________________________________

Image THE MAPPER
__________________________________________________________

Image

User avatar
MasterThomy
CJ Wannabe
CJ Wannabe
Posts: 42
Joined: December 23rd, 2008, 5:14 pm

Re: help with pw

Post by MasterThomy » November 14th, 2010, 12:38 pm

Well, replace getCvar("ur_area") with the pw you want, like "12345", or maybe enable console on server?:D
In server cfg: set sv_disableClientConsole "0"
Ex CoD2 mapper/modder.

Levcek
CJ Fan
CJ Fan
Posts: 129
Joined: March 7th, 2010, 11:37 am
Location: sLOVEnia, stajerska FTW

Re: help with pw

Post by Levcek » November 14th, 2010, 1:16 pm

well i cant disable it because they are few bugs in it like openscriptmenu weapon_german kar98k_sniper_mp and then ur invisible... :D
__________________________________________________________

Image THE MAPPER
__________________________________________________________

Image

Levcek
CJ Fan
CJ Fan
Posts: 129
Joined: March 7th, 2010, 11:37 am
Location: sLOVEnia, stajerska FTW

Re: help with pw

Post by Levcek » November 14th, 2010, 1:17 pm

and thx for post ^^ ill try masty XD
__________________________________________________________

Image THE MAPPER
__________________________________________________________

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests