[HELP] Disable Command - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Disable Command (
/showthread.php?tid=200192)
[HELP] Disable Command - Larsey123IsMe - 17.12.2010
Where to put in "
You cannot use that command in jail" (He cant use any commands in jail)...
So if i am in jail and try to use /kill then it should say "
You cannot use that command in jail"
Here is the
Script
Re: [HELP] Disable Command -
blackwave - 17.12.2010
pawn Код:
new jailed[MAX_PLAYERS]; // Global variable
On your jail command, now:
pawn Код:
jailed[id] = 1; // Id which were jailed
On your commands you want to forbidden:
pawn Код:
if(jailed[playerid]== 1) return SendClientMessage(...);
Re: [HELP] Disable Command -
Baboon - 17.12.2010
try this:
http://pastebin.com/fSV4V0Sa
edit: at the SendClientMessage, you should add return before it. So: return SendClientMessage(playerid......... etc.