/kick and admin chat
#3

Thanks the kick worked

This is the admin chat

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(muted[playerid] == 1)
    {
    SendClientMessage(playerid, Red, "You are muted and cannot talk");
    return 0;
    }
    if(text[0] == '#')
    {
        if(level[playerid] >= 1)
        {
        new string[180], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "Admin Lvl %s: %s",name,text[1]);
        MessageToAdmins(AdminColor,string);
        return 0;
        } else {
        return 0;
        }
    }
    return 1;
}
Reply


Messages In This Thread
/kick and admin chat - by xir - 29.12.2010, 20:19
Re: /kick and admin chat - by Scenario - 29.12.2010, 20:24
Re: /kick and admin chat - by xir - 29.12.2010, 20:28
Re: /kick and admin chat - by Scenario - 29.12.2010, 20:34
Re: /kick and admin chat - by xir - 29.12.2010, 20:36
Re: /kick and admin chat - by xir - 29.12.2010, 20:39
Re: /kick and admin chat - by _rAped - 29.12.2010, 21:26
Re: /kick and admin chat - by Scenario - 30.12.2010, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)