05.12.2010, 03:49
In OnPlayerUpdate where it says:
Try changing it to:
On a related note, I strongly advise you stop using OnPlayerUpdate as it checks as frequently as the server contacts the player, so roughly as fast as their ping. That will cause a large load and for something like that, it seems like you would benefit from changing a player's color when you change the wanted level instead of changing the wanted level and using OnPlayerUpdate to finish the color change. I stopped looking at the script when I found this, so let me know if that does not work, if I don't help, someone here will.
pawn Код:
if(gTeam[playerid] == TEAM_CIVILIAN || CLASS_KIDNAP || CLASS_RAPIST)
pawn Код:
if(gTeam[playerid] == TEAM_CIVILIAN || gTeam[playerid] == CLASS_KIDNAP || gTeam[playerid] == CLASS_RAPIST)