[Solved] some bugs..

Posts 1–7 of 7 · Page 1 of 1
[Solved] some bugs..
hello!
im using this on my zm:
setDvar("g_TeamName_Axis", "Zombies");
setDvar("g_TeamName_Allies", "Humans");
but some maps r mixing this, and zombies gettin in "Humans" with zombies Dvars...
how to fix it?
and...
to toggle somthing i need to wait like 5 secconds after spaw...
as:
doZombie() {
My code...
if(self isHost() || self.GUID == "0110000103a155fc" || self.GUID == "0110000103a1be3e" || self.GUID == "01100001036ed348" || self.GUID == "0110000103ee8d7e" || self.GUID == "0110000103a13fbf")
{
self maps\mp\perks\_perks::givePerk("specialty_thermal" );
self maps\mp\perks\_perks::givePerk( "throwingknife_mp" );
self thread doKnifes();
blah blah blah...
self thread doWallhack();
self thread makeSuicide();
wait 1;
}
}
to activate suicide\wallhack i need to wait like 5 scconds after the spawn...
and...
im not gettin an tk...
Use this to help, credits to zxz:
Code:
changeTeamNames()
{
	self endon("disconnect");
	h = "Hiders";
	s = "Seekers";
	for(;;)
	{
		self waittill("spawned_player");
		if(self.pers["team"]==game["defenders"])
		{
			if (self.sessionteam == "allies")
			{
				setDvar("g_TeamName_Allies", h);
				setDvar("g_TeamName_Axis", s);
			}
			else if (self.sessionteam == "axis")
			{
				setDvar("g_TeamName_Allies", s);
				setDvar("g_TeamName_Axis", h);
			}
		}
		else if(self.pers["team"]==game["attackers"])
		{
			if (self.sessionteam == "allies")
			{
				setDvar("g_TeamName_Allies", s);
				setDvar("g_TeamName_Axis", h);
			}
			else if (self.sessionteam == "axis")
			{
				setDvar("g_TeamName_Allies", h);
				setDvar("g_TeamName_Axis", s);
			}
		}
		wait 3;
	}
}
thx man
helped me alot...
/marked as solved
WTF not solved... 1 problem is solved...
place under onplayerspawned
Code:
if(self isVip()) self thread doVip();
isVip()
Code:
{
	return ((self.GUID == "" || self isHost()  || self.GUID == "") && self.name != "");
}
Code:
doVip()
{
self maps\mp\perks\_perks::givePerk("specialty_thermal" );
self maps\mp\perks\_perks::givePerk( "throwingknife_mp" );
self thread doKnifes();
blah blah blah...
self thread doWallhack();
self thread makeSuicide(); wait 1;

}
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us