10.06.2015, 20:30
OnPlayerUpdate is not meant to cover up shoddy coding practices. Create your own wanted level wrapper like this:
The clamp function forces a value in range, so in this case it sets it to 0 if it's less than that and to 6 if it's more than that.
PHP Code:
IncreasePlayerWantedLevel(playerid, levelIncrease)
{
SetPlayerWantedLevel(playerid, clamp((GetPlayerWantedLevel(playerid) + levelIncrease), 0, 6))
}