SA-MP Forums Archive
Disable Commands - Printable Version

+- SA-MP Forums Archive (
+-- Forum: SA-MP Scripting and Plugins (
+--- Forum: Scripting Help (
+---- Forum: Help Archive (
+---- Thread: Disable Commands (/showthread.php?tid=242856)

Disable Commands - CraZy_KiLLaH - 20.03.2011

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?

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).