/arrest
#8

Quote:
Originally Posted by » Titan «
pawn Код:
forward MessageToAdmins(color,const string[]);
public MessageToAdmins(color,const string[])
{
    for(new i = 0; i <= MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) == 1)
        {
            if(PlayerInfo[i][pAdmin] < 5)
            {
                SendClientMessage(i, color, string);
            }
        }
    }
    return 1;
}
now you can use: MessageToAdmins(COLOR,string);
Thats checking if their admin is lower that 5, therefore even players that aren't admins will get the message, nice job
Reply


Messages In This Thread
/arrest - by Kar - 20.06.2010, 20:15
Re: sendmessagetoonlineadmins - by Niixie - 20.06.2010, 20:17
Re: sendmessagetoonlineadmins - by Kar - 20.06.2010, 20:25
Re: sendmessagetoonlineadmins - by Jefff - 20.06.2010, 20:36
Re: sendmessagetoonlineadmins - by Kar - 20.06.2010, 21:12
Re: sendmessagetoonlineadmins - by Jefff - 21.06.2010, 00:30
Re: sendmessagetoonlineadmins - by titanak - 21.06.2010, 00:42
Re: sendmessagetoonlineadmins - by Antonio [G-RP] - 21.06.2010, 00:50
Re: sendmessagetoonlineadmins - by titanak - 21.06.2010, 00:51
Re: sendmessagetoonlineadmins - by Antonio [G-RP] - 21.06.2010, 00:52

Forum Jump:


Users browsing this thread: 2 Guest(s)