Checking is player wanted - 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: Checking is player wanted (
/showthread.php?tid=367147)
Checking is player wanted -
DizzY2306 - 08.08.2012
Hello guys i stucked again...i need to check is player wanted so if player is wanted you will be able to /cuff him but if he aint it will send you message that you cannot cuff him
Please help
I use zcmd btw
Re: Checking is player wanted -
Makaveli93 - 08.08.2012
Use this
https://sampwiki.blast.hk/wiki/GetPlayerWantedLevel
Re: Checking is player wanted -
shitbird - 08.08.2012
https://sampwiki.blast.hk/wiki/GetPlayerWantedLevel
I'm going to assume you already have parts of the command in place.
pawn Код:
if (GetPlayerWantedLevel(id < 1) return SendClientMessage(playerid, -1, "Unable to cuff, person is not a suspect.");
Doesn't get much more simple.
Re: Checking is player wanted -
DizzY2306 - 09.08.2012
shitbird thanks...i knew its something like that but i wasnt really sure
![Cheesy](images/smilies/biggrin.png)
Thanks, rep+