13.08.2016, 12:14
Quote:
PHP код:
|
First you have to declare a global variable, ex:
PHP код:
new bool:AllowCmds;
And make your command to toggle it
And to prevent executing the commands, If you are uzing zcmd:
PHP код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(AllowCmds == false)
{
SendClientMessage(playerid,-1,"Commands are disabled by an admin!");
return 0;
}
return 1;
}