Admins Only
#3

Quote:
Originally Posted by Alpay0098
Посмотреть сообщение
Its simple. first forward AdminBroadCast(color, const string[], level);
PHP код:
public AdminBroadCast(color, const string[], level)
{
    foreach (
Playeri)
    {
        if(
IsPlayerConnected(i))
        {
            if(
PInfo[i][pAdminLevel] >= level)
            {
                
SendClientMessage(icolorstring);
            }
        }
    }
    return 
1;

You don't have to check if the player is online when you use foreach.
Reply


Messages In This Thread
Admins Only - by Digii - 11.06.2016, 11:47
Re: Admins Only - by Alpay0098 - 11.06.2016, 12:08
Re: Admins Only - by Stinged - 11.06.2016, 12:26
Re: Admins Only - by Digii - 11.06.2016, 16:26

Forum Jump:


Users browsing this thread: 4 Guest(s)