26.06.2012, 01:27
So im making OnPlayerUpdate check if the player is wanted and if so change there color. Here is how i want it
0 stars = White
1-3 stars = Yellow
4-6 = Red
But the problem is, is that if they have 0 they dont get set white, but are yellow.
0 stars = White
1-3 stars = Yellow
4-6 = Red
But the problem is, is that if they have 0 they dont get set white, but are yellow.
pawn Код:
if(GetPlayerWantedLevel(playerid) <= 0)
{
SetPlayerColor(playerid, COLOR_WHITE);
}
else if(GetPlayerWantedLevel(playerid) <= 3)
{
SetPlayerColor(playerid, COLOR_YELLOW);
}
else if(GetPlayerWantedLevel(playerid) >= 4)
{
SetPlayerColor(playerid, COLOR_RED);
}