Report System
#3

Quote:
Originally Posted by grand.Theft.Otto
Посмотреть сообщение
You have to make a separate function, like MessageToAdmins. Here:

pawn Код:
forward MessageToAdmins(color,const string[]);
public MessageToAdmins(color,const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) == 1)
        {
            if(IsPlayerAdmin(i))
            {
                SendClientMessage(i, color, string);
            }
        }
    }
    return 1;
}
Then, when you format the message, use MessageToAdmins(COLOR_HERE,string); instead of SendClientMessage(...);

You can change IsPlayerAdmin to your admin variables if you have any.
Thanks for this public funcion , rep+
Reply


Messages In This Thread
Report System - by Shockey HD - 01.12.2011, 21:07
Re: Report System - by grand.Theft.Otto - 01.12.2011, 21:39
Re: Report System - by JohnD123 - 12.04.2014, 03:08
Re: Report System - by Hanuman - 12.04.2014, 03:39
Re: Report System - by RajatPawar - 12.04.2014, 07:19

Forum Jump:


Users browsing this thread: 1 Guest(s)