Wanted level colors
#6

Quote:
Originally Posted by MP2
Посмотреть сообщение
Why are you setting it under OnPlayerUpdate? That's incredibly inefficient and un-necessary. Just set their color when you change their wanted level!

pawn Код:
switch(wantedlevel)
{
    case 0: SetPlayerColor(playerid, COLOR_WHITE);
    case 1..3: SetPlayerColor(playerid, COLOR_YELLOW);
    default: SetPlayerColor(playerid, COLOR_RED);
}
Very true, players update thousands of time a minute, it would cause lag like no other.
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: 2 Guest(s)