SA-MP Forums Archive
No cmd - 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: No cmd (/showthread.php?tid=456496)



No cmd - Sliceofdeath - 06.08.2013

How to make something like jailed user cannot use any cmd like /kill /go or any tele cmd


Re: No cmd - ACI - 06.08.2013

Make a global variable which has two values; true and false. [new bool:varname]

For more help: https://sampwiki.blast.hk/wiki/Scripting_Basics#Variables


Re: No cmd - Sliceofdeath - 06.08.2013

Quote:
Originally Posted by ACI
Посмотреть сообщение
Make a global variable which has two values; true and false. [new bool:varname]

For more help: https://sampwiki.blast.hk/wiki/Scripting_Basics#Variables
Oh come on tell which define i have to make false


Re: No cmd - Areax - 06.08.2013

Make a new variable like this:
pawn Код:
new jailed[MAX_PLAYERS];
And then add this to your command /kill, /go, /teleport...:
pawn Код:
if(jailed[playerid] == 1)return SendClientMessage(playerid, -1, "You can't use this command, when you are jailed!");