wanted colors
#2

Here you go:

pawn Код:
forward WantedLevelColor(playerid);
public WantedLevelColor(playerid) {

    new wanted = GetPlayerWantedLevel(playerid);
    if(wanted == 6)
    {
        SetPlayerColor(playerid, COLOR_RED);
    }
    if(wanted == 5)
    {
        SetPlayerColor(playerid, COLOR_RED);
    }
    if(wanted == 4)
    {
        SetPlayerColor(playerid, COLOR_RED);
    }
    if(wanted == 3)
    {
        SetPlayerColor(playerid, COLOR_YELLOW);
    }
    if(wanted == 2)
    {
        SetPlayerColor(playerid, COLOR_YELLOW);
    }
    if(wanted == 1)
    {
        SetPlayerColor(playerid, COLOR_YELLOW);
    }
    if(wanted == 0)
    {
        SetPlayerToTeamColor(playerid);
    }
    return true;
}


public OnPlayerUpdate(playerid)
{
    WantedLevelColor(playerid);
        return true;
}
Reply


Messages In This Thread
wanted colors - by HardBoy - 08.09.2012, 14:23
Re: wanted colors - by Djole1337 - 08.09.2012, 14:27
Re: wanted colors - by Lordzy - 08.09.2012, 14:33
Re: wanted colors - by HardBoy - 08.09.2012, 14:47
Re: wanted colors - by HardBoy - 08.09.2012, 14:57
Re: wanted colors - by clarencecuzz - 08.09.2012, 14:59
Re: wanted colors - by HardBoy - 08.09.2012, 15:03
Re: wanted colors - by clarencecuzz - 08.09.2012, 15:03
Re: wanted colors - by HardBoy - 08.09.2012, 15:25

Forum Jump:


Users browsing this thread: 1 Guest(s)