SA-MP Forums Archive
enable and disable - 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: enable and disable (/showthread.php?tid=297867)



enable and disable - RBTDM - 18.11.2011

Hello!
how can i enable and disable a command?


Re: enable and disable - Daddy Yankee - 18.11.2011

You can make another command which will set a variable to 0 or 1. Then when you use the first command check if it's enabled or disabled first (0 or 1) so if it's 1 the player can use it, else he will get a message the the cmd was disabled