Wanted level colors
#1

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.

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);
    }
Reply


Messages In This Thread
Wanted level colors - by SnG.Scot_MisCuDI - 26.06.2012, 01:27
Re: Wanted level colors - by Dan_Barocu - 26.06.2012, 01:36
Respuesta: Wanted level colors - by Chris1337 - 26.06.2012, 01:39
Re: Wanted level colors - by MP2 - 26.06.2012, 02:36
Re: Wanted level colors - by SnG.Scot_MisCuDI - 26.06.2012, 05:00
Re: Wanted level colors - by Rokzlive - 26.06.2012, 06:18
Re: Wanted level colors - by SnG.Scot_MisCuDI - 29.06.2012, 02:04
Re: Wanted level colors - by Chris1337 - 29.06.2012, 02:48
Re: Wanted level colors - by SnG.Scot_MisCuDI - 30.06.2012, 01:05
Re: Wanted level colors - by ReneG - 30.06.2012, 01:46

Forum Jump:


Users browsing this thread: 5 Guest(s)