Block command(s)
#2

Using ZCMD here u go
and a bool....
pawn Код:
new bool:commandsTog;


//example
CMD:togcmds(playerid, params[])
{
  // ad ur admin variables here such as IsPlayerAdmin or w/e ur using
  if(commandsTog == false)
  {
    commandsTog = true;
  }
  else
  {
   commandsTog = false ;
  }
  return 1;
}

//now in any command all u have to do is add this command somewhere @ the top of it
CMD:ah(playerid, params[])
{
  if(commandsTog == true) return SendClientMessage(playerid, -1, "Command is disabled");
  /*
     Coding w/e else u have suggest add somewhere at the top of the command so the cmd won't be
    executed... probably after the new's or something...
  */

  return 1;
}
Reply


Messages In This Thread
Block command(s) - by Ananisiki - 14.03.2013, 03:25
Re: Block command(s) - by Glad2BeHere - 14.03.2013, 03:42
Re: Block command(s) - by Ananisiki - 14.03.2013, 04:12
Re: Block command(s) - by Glad2BeHere - 14.03.2013, 04:26
Re: Block command(s) - by Ananisiki - 14.03.2013, 21:24

Forum Jump:


Users browsing this thread: 1 Guest(s)