SA-MP Forums Archive
Wanted level help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Wanted level help (/showthread.php?tid=515473)



Wanted level help - jimis - 26.05.2014

Hi guys I have make simple rob system and when someone rob then he take 1 wanted level. But if he robs 40 shops then he will take 40 wanted level. Its to much!! So could someone tell me how i can make for example when someone rob 5 shops then he take 1 or 2 wanted levels not 5.
Thanks.
Jimis


Re: Wanted level help - NaClchemistryK - 26.05.2014

make a glob. var. for each player
increase the value of the var when he robs
use the function setplayerwantedlevel() and set it depending on the value of the var, also do this as you please
note the as you please, that is important. you should set it depending on your own brain.