Rcon chat on command
#4

Commands using zcmd

pawn Код:
new bool: EnableChat = true;
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(EnableChat == false) return 0;
    return 1;
}
pawn Код:
command(chat, playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You are not an administrator!");

    switch(EnableChat)
    {
        case false:
        {
             EnableChat = true;
             SendClientMessageToAll(COLOR_GOLDEN, "INFO: Chat is turned on.");
        }
        case true:
        {
             EnableChat = false;
             SendClientMessageToAll(COLOR_GOLDEN, "INFO: Chat is turned off.");
        }
     }
     return 1;
}
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)