08.05.2016, 18:09
You could use something like:
Note that you'll have to define COLOR_RED and COLOR_BLUE to actually work.
pawn Код:
OnPlayerSpawn(playerid)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(gTeam[playerid] == 1) //Police team
{
SetPlayerMarkerForPlayer(playerid, i, COLOR_RED);
}
else SetPlayerMarkerForPlayer(playerid, i, COLOR_BLUE);
}
return 1;
}