SA-MP Forums Archive
Disable Commands - 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: Disable Commands (/showthread.php?tid=242856)



Disable Commands - CraZy_KiLLaH - 20.03.2011

Hello!
If for example i have some commands in the GM and i have a minigame on a FS and i want to disable the COmmands from GM while in the minigame,how can i do that?
Thanks.


AW: Disable Commands - Pablo Borsellino - 20.03.2011

With PVar's. Set a PVar in the FS while any player is in the Minigame, in the Gamemode you can use then GetPVar and return OnPlayerCommandText if the PVar is setted

#edit: Or Include your Filterscript in the Gamemode and use a normal bool (True/False).