15.03.2011, 19:49
pawn Code:
new bool:global = false; // before GameModeInit / FilterScriptInit
pawn Code:
if(!strcmp(cmdtext, "/ed", true)) // Enable / Disable
{
if(global == false)
{
global = true;
}
else
{
global = false;
}
return 1;
}
pawn Code:
public OnPlayerText(playerid,text[])
{
if(global == true) return 0;
return 1;
}