Rcon chat on command
#3

Код:
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;
  }
This is the command, i need now command who turns on chat
Reply


Messages In This Thread
Rcon chat on command - by jaksimaksi - 30.11.2009, 12:02
Re: Rcon chat on command - by [GM]The_Don - 30.11.2009, 21:57
Re: Rcon chat on command - by jaksimaksi - 01.12.2009, 18:12
Re: Rcon chat on command - by Luka P. - 01.12.2009, 18:59

Forum Jump:


Users browsing this thread: 1 Guest(s)