28.07.2011, 22:48
Quote:
|
Right so i dont know how to do this (this is the whole point of learning) but this is what i want
people with 6 stars = Red Name People with 0 stars = white name class id 2 (team whatever) = blue how can i do this? |
pawn Код:
public OnPlayerUpdate(playerid)
{
if (GetPlayerWantedLevel(playerid) >= 6 && GetPlayerTeam(playerid) == 1) { SetPlayerColor(playerid, 0xFF0000FF); }
else if (GetPlayerWantedLevel(playerid) < 6 && GetPlayerTeam(playerid) == 1) { SetPlayerColor(playerid, 0xFFFFFFFF); }
return true.
}
public OnPlayerSpawn(playerid)
{
if (GetPlayerTeam(playerid) == 1) { SetPlayerColor(playerid, 0xFFFFFFFF); }
else if (GetPlayerTeam(playerid) == 2) { SetPlayerColor(playerid, 0x00CCFFFF); }
return true.
}


