An admin chat? ґ+REPP
#8

Here's a code
pawn Код:
if(text[0] == '@' && AdminLevel[playerid] >= 1)
{
new name[24]; GetPlayerName(playerid,name,24);
format(string,256,"<Admin Chat> %s(%d): {AFAFAF}%s",name,playerid,text[1]);
MessageToAdmins(COLOR_WHITE,string);
return 0;
}
pawn Код:
stock MessageToAdmins(color,const string[])
{
    for(new i = 0; i <= MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) == 1)
        {
            if (AdminLevel[i] >= 1)
            {
                SendClientMessage(i, color, string);
            }
        }
    }
    return 1;
}
Change the variable "AdminLevel" that i gave u to the variable u have
Reply


Messages In This Thread
An admin chat? ґ+REPP - by Lynet - 12.11.2013, 13:42
Re: An admin chat? ґ+REPP - by dominik523 - 12.11.2013, 13:51
Re: An admin chat? ґ+REPP - by Loot - 12.11.2013, 13:51
Re: An admin chat? ґ+REPP - by Lynet - 12.11.2013, 14:02
Re: An admin chat? ґ+REPP - by newbie scripter - 12.11.2013, 14:11
Re: An admin chat? ґ+REPP - by Loot - 12.11.2013, 14:16
AW: An admin chat? ґ+REPP - by Skimmer - 12.11.2013, 14:18
Re: An admin chat? ґ+REPP - by iFiras - 12.11.2013, 14:28
Re: An admin chat? ґ+REPP - by Lynet - 12.11.2013, 14:32
Re: An admin chat? ґ+REPP - by Ghazal - 12.11.2013, 14:33

Forum Jump:


Users browsing this thread: 3 Guest(s)