03.01.2015, 04:58
Hello that's my code.
The problem is it doesn't make the colors.. to the player
PHP код:
public OnPlayerSpawn(playerid)
{
switch(GetPlayerTeam(playerid))
{
case 29 .. 100:
{
SetPlayerColor(playerid, COLOR_RED);
SetPlayerTeam(playerid, TEAM_TERROR);
}
case 285 .. 287:
{
SetPlayerColor(playerid, COLOR_BLUE);
SetPlayerTeam(playerid, TEAM_ARMY);
}
}
return 1;
}