Disable all commands except one?
#3

Quote:
Originally Posted by MP2
View Post
Very easy. Put the command(s) you wish to have available at the top of OnPlayerCommandText.

Under that command:

pawn Code:
if(GetPVarInt(playerid, "InDM") == 1) return SendClientMessage(playerid, COLOR_RED, "Commands disabled in DM.");
Job's a good'un.
Thanks a lot!
It really worked.
Reply


Messages In This Thread
Disable all commands except one? - by Morten_Guado - 08.04.2013, 23:38
Re: Disable all commands except one? - by MP2 - 09.04.2013, 00:07
Re: Disable all commands except one? - by Morten_Guado - 09.04.2013, 01:00
Re: Disable all commands except one? - by Scenario - 09.04.2013, 01:03

Forum Jump:


Users browsing this thread: 1 Guest(s)