[HELP] My Classes Wont Spawn With Its Specific Colour Anymore???
#2

In OnPlayerUpdate where it says:

pawn Код:
if(gTeam[playerid] == TEAM_CIVILIAN || CLASS_KIDNAP || CLASS_RAPIST)
Try changing it to:

pawn Код:
if(gTeam[playerid] == TEAM_CIVILIAN || gTeam[playerid] == CLASS_KIDNAP || gTeam[playerid] == CLASS_RAPIST)
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)