Hit give wanted level - 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: Hit give wanted level (
/showthread.php?tid=570259)
Hit give wanted level -
Cr3dO - 06.04.2015
when a cause has occurred cop give wanted level? help me
Re: Hit give wanted level -
Stanford - 06.04.2015
I didn't fully understand you, but you mentioned something about wanted levels.
To set a wanted level you should use the function SetPlayerWantedLevel.
Proper syntax:
pawn Код:
SetPlayerWantedLevel(playerid, level);
If you want to learn more about wanted level feature you should hit samp wiki.
I hope I helped!
Re: Hit give wanted level -
Golf - 06.04.2015
you can also use this , for just add one level
PHP код:
new wantedlevel;
wantedlevel = GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid, wantedlevel + 1 ) ;
Re: Hit give wanted level -
_GHT_MarK445 - 06.04.2015
Well, you can actualy make it a lot easier, just by using
Код:
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1 ) ;
You are enable to use function in function, so why not to use it.