SetPlayerWantedLevel - 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: SetPlayerWantedLevel (
/showthread.php?tid=286759)
SetPlayerWantedLevel -
wumpyc - 30.09.2011
Hey, is there any other function like GivePlayerWantedLevel...so it wont set but only give him the stars...pls help
Re: SetPlayerWantedLevel -
Jafet_Macario - 30.09.2011
pawn Code:
new wantedlevel = GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid, wantedlevel + 1); // It will give him +1 wanted level
Re: SetPlayerWantedLevel -
Lorenc_ - 30.09.2011
pawn Code:
stock GivePlayerWantedLevel(playerid, level) return SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + level);
#define GivePlayerWantedLevel(%1, %2) SetPlayerWantedLevel(%1, GetPlayerWantedLevel(%1) + %2)
These should work