Wanted Level
#8

OnPlayerUpdate is not meant to cover up shoddy coding practices. Create your own wanted level wrapper like this:

PHP Code:
IncreasePlayerWantedLevel(playeridlevelIncrease)
{
    
SetPlayerWantedLevel(playeridclamp((GetPlayerWantedLevel(playerid) + levelIncrease), 06))

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.
Reply


Messages In This Thread
Wanted Level - by STONEGOLD - 10.06.2015, 17:25
Re: Wanted Level - by Ghazal - 10.06.2015, 17:29
Re: Wanted Level - by STONEGOLD - 10.06.2015, 19:43
Re: Wanted Level - by DarkLouis - 10.06.2015, 20:20
Re: Wanted Level - by KamalBa - 10.06.2015, 20:23
Re: Wanted Level - by DarkLouis - 10.06.2015, 20:26
Re: Wanted Level - by KamalBa - 10.06.2015, 20:28
Re: Wanted Level - by Vince - 10.06.2015, 20:30
Re: Wanted Level - by STONEGOLD - 10.06.2015, 20:41
Re: Wanted Level - by Banana_Ghost - 11.06.2015, 02:04

Forum Jump:


Users browsing this thread: 1 Guest(s)