change team color
#1

hi. how i can change team color from default color (grey) to something else?
Reply
#2

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerColor(playerid, YOUR_COLOR_HERE);
    //other codes...
    return 1;
}
Reply
#3

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].
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)