How to disable/enable command
#2

pawn Код:
new minigundisable;

CMD:givememinigun(playerid, params[])
{
   if(minigundisable == 1) return SendClientMessage(playerid, 0xFF0000AA, "This Command is disabled");
   else if(minigundisable == 0)
   {
      //Type Your Things here, if its available...
   }
   return 1;
}

CMD:allowminigun(playerid, params[])
{
   if(minigundisable == 0)
   {
      SendClientMessage(playerid, 0xFF0000AA, "You've Disabled Admin, using /givememinigun Command");
      minigundisable = 1;
   }
   else if(minigundisable == 1)
   {
      SendClientMessage(playerid, 0xFF0000AA, "You've Enable Admin, using /givememinigun Command");
      minigundisable = 0;
   }
   return 1;
}
Reply


Messages In This Thread
How to disable/enable command - by Shazwan - 06.04.2014, 08:30
Re: How to disable/enable command - by ReD_HunTeR - 06.04.2014, 08:54
Re: How to disable/enable command - by Shazwan - 06.04.2014, 08:58
Re: How to disable/enable command - by Shazwan - 06.04.2014, 09:00
Re: How to disable/enable command - by ReD_HunTeR - 06.04.2014, 09:04

Forum Jump:


Users browsing this thread: 1 Guest(s)