15.07.2011, 14:09
At the top of the GM, below the "#endif" line, add this:
This is a simples flag (boolean) to determine if the OOC is enabled or not.
Then, at the "/ooc" command, add this line:
Then, you make you command to disable / enable the OOC, with strcmp, sscanf, or what are you using, the important is:
Sorry for my bad english, pal.
pawn Код:
new bool:OOCenable = true;
Then, at the "/ooc" command, add this line:
pawn Код:
if(!OOCenable) return SendClientMessage(playerid, 0xffffffff, "ERROR: OOC disabled by Admin.");
pawn Код:
OOCenable = true; //Will enable OOC.
OOCenable = false; //Will turn off OOC.