Same Team, Same 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Same Team, Same Color? (
/showthread.php?tid=99936)
Same Team, Same Color? -
DeltaAirlines12 - 01.10.2009
Ok, I have a ww3 game mode Im making and how do I make it so that
all the same players on same team are the same color? Thanks.
Re: Same Team, Same Color? -
Desert - 01.10.2009
Heres an example
Under OnPlayerSpawn
Код:
if(GetPlayerTeam(playerid) == 1)
{
SetPlayerColor(playerid,COLOUR_BLUE);
return 1;
}
else if(GetPlayerTeam(playerid) == 2)
{
SetPlayerColor(playerid,COLOUR_RED);
return 1;
}
Re: Same Team, Same Color? -
DeltaAirlines12 - 01.10.2009
Quote:
Originally Posted by Desert
Heres an example
Under OnPlayerSpawn
Код:
if(GetPlayerTeam(playerid) == 1)
{
SetPlayerColor(playerid,COLOUR_BLUE);
return 1;
}
else if(GetPlayerTeam(playerid) == 2)
{
SetPlayerColor(playerid,COLOUR_RED);
return 1;
}
|
Thanks