change team color - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: change team color (
/showthread.php?tid=348321)
change team color -
TheDiscussionCafe - 05.06.2012
hi. how i can change team color from default color (grey) to something else?
Re: change team color -
Edward156 - 05.06.2012
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerColor(playerid, YOUR_COLOR_HERE);
//other codes...
return 1;
}
Re: change team color -
MP2 - 05.06.2012
pawn Код:
switch(...)
{
case TEAM_COP: SetPlayerColor(playerid, COLOR_BLUE);
case TEAM_TERRORIST: SetPlayerColor(playerid, COLOR_RED);
}
... being whatever variable you use to store the players' teams in, i.e. pTeam[playerid].