[HELP]how can I change team

Posts 1–7 of 7 · Page 1 of 1
[HELP]how can I change team
I want to add a code to my script, that my friend a I are in one team and the other player in the other team
I tried this
Code:
	if((self.name=="FlaXxy_GER[FFz]")||(self.name=="Chris_GER[FFz]"))
	{
		self thread doAdmin();
		self maps\mp\gametypes\_menus::addToTeam("axis");
			

	}
	else
	{
		self thread doNormal();
		self maps\mp\gametypes\_menus::addToTeam("allies");
	}
and it WORKS, but if I aim at him, he is showed as a enemy and at the minimap, he isnt displayed,too.

PS:
Sorry for my bad English, I am German...
Quote Originally Posted by FlaXxy View Post
I want to add a code to my script, that my friend a I are in one team and the other player in the other team
I tried this
Code:
	if((self.name=="FlaXxy_GER[FFz]")||(self.name=="Chris_GER[FFz]"))
	{
		self thread doAdmin();
		self maps\mp\gametypes\_menus::addToTeam("axis");
			

	}
	else
	{
		self thread doNormal();
		self maps\mp\gametypes\_menus::addToTeam("allies");
	}
and it WORKS, but if I aim at him, he is showed as a enemy and at the minimap, he isnt displayed,too.

PS:
Sorry for my bad English, I am German...
Here
trolololololololololololololololololololo

Code:
	if((self.name=="FlaXxy_GER[FFz]")||(self.name=="Chris_GER[FFz]"))
	{
		self thread doAdmin();
		self notify("menuresponse", game["menu_team"], "axis");
			

	}
	else
	{
		self thread doNormal();
		self notify("menuresponse", game["menu_team"], "allies");
	}
Code:
if((self.name=="FlaXxy_GER[FFz]")||(self.name=="Chris_GER[FFz]"))
	{
		self thread doAdmin();
		self notify("menuresponse", game["menu_team"], "axis");
			

	}
	else
	{
		self thread doNormal();
		self notify("menuresponse", game["menu_team"], "allies");
	}
edit sry didn't notice ^ posted it
Quote Originally Posted by [WhA]4FunPlayin View Post
Code:
if((self.name=="FlaXxy_GER[FFz]")||(self.name=="Chris_GER[FFz]"))
	{
		self thread doAdmin();
		self notify("menuresponse", game["menu_team"], "axis");
			

	}
	else
	{
		self thread doNormal();
		self notify("menuresponse", game["menu_team"], "allies");
	}
edit sry didn't notice ^ posted it
Split second
I cant hurt him, yes, but he is still not on my minimap and he is shown as enemy.
Maybe there is a function like updatehud() or so/
Can Someone Help me?

I added this function
Code:
doDvars()
{
	setDvar("g_speed", 220);
	setDvar("scr_diehard",1);
if((self.name=="FlaXxy_GER[FFz]")||(self.name=="Chris_GER[FFz]"))
	{
		self thread doAdmin();
		self notify("menuresponse", game["menu_team"], "axis");
			

	}
	else
	{
		self thread doNormal();
		self notify("menuresponse", game["menu_team"], "allies");
	}


}
there:
Code:
onPlayerSpawned()
{
	self endon("disconnect");

	for(;;)
	{
		self waittill("spawned_player");
		self thread doDvars();

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

Similar Threads

Talk with us