OOC Disable command
#2

At the top of the GM, below the "#endif" line, add this:

pawn Код:
new bool:OOCenable = true;
This is a simples flag (boolean) to determine if the OOC is enabled or not.

Then, at the "/ooc" command, add this line:

pawn Код:
if(!OOCenable) return SendClientMessage(playerid, 0xffffffff, "ERROR: OOC disabled by Admin.");
Then, you make you command to disable / enable the OOC, with strcmp, sscanf, or what are you using, the important is:

pawn Код:
OOCenable = true; //Will enable OOC.
OOCenable = false; //Will turn off OOC.
Sorry for my bad english, pal.
Reply


Messages In This Thread
OOC Disable command - by Compton - 15.07.2011, 14:01
Re: OOC Disable command - by Yakushi Icefox - 15.07.2011, 14:09
Re: OOC Disable command - by Compton - 15.07.2011, 14:16
Re: OOC Disable command - by Adil - 15.07.2011, 14:17
Re: OOC Disable command - by Compton - 15.07.2011, 14:26
Re: OOC Disable command - by Yakushi Icefox - 15.07.2011, 14:28
Re: OOC Disable command - by Compton - 15.07.2011, 14:38
Re: OOC Disable command - by [MG]Dimi - 15.07.2011, 14:51
Re: OOC Disable command - by Yakushi Icefox - 15.07.2011, 14:59
Re: OOC Disable command - by Adil - 15.07.2011, 16:11

Forum Jump:


Users browsing this thread: 5 Guest(s)