Player colour always yellow...
#5

pawn Код:
if(playerData[playerid][playerWantedLevel] == 0)
{
    // White Wanted Level
    SetPlayerColor(playerid, 0xFFFFFFFF);
}
else if(playerData[playerid][playerWantedLevel] >= 12)
{
    // Red Wanted Level
    SetPlayerColor(playerid, 0xFF0000AA); // Red
}
else if(playerData[playerid][playerWantedLevel] >= 6)
{
     // Orange Wanted Level
    SetPlayerColor(playerid, 0xFF6600AA); // Orange
}
else if (playerData[playerid][playerWantedLevel] >= 1)
{
    // Yellow Wanted Level
    SetPlayerColor(playerid, 0xFFFF00AA); // Yellow
}
Changing the order will fix it.
Reply


Messages In This Thread
Player colour always yellow... - by DanLore - 15.02.2013, 12:42
Re: Player colour always yellow... - by Da_Noob - 15.02.2013, 12:45
Re: Player colour always yellow... - by DanLore - 15.02.2013, 12:46
Re: Player colour always yellow... - by Vince - 15.02.2013, 13:20
Re: Player colour always yellow... - by SuperViper - 15.02.2013, 14:13

Forum Jump:


Users browsing this thread: 1 Guest(s)