01.12.2009, 18:12
Код:
OnGameModeinit:
DisableChat = false;
public OnPlayerText(playerid, text[])
{
if(DisableChat == true)
return 0;
if(!strcmp(cmdtext,"/offchat",true,7))
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_LRED, "You are not administrator");
for(new i; i < MAX_PLAYERS; i++)
DisableChat = true;
new string[256];
format(string, sizeof(string), "Chat is turned off");
SendClientMessageToAll(COLOR_GOLDEN, string);
return 1;
}

