Custom function
#2

pawn Code:
public HelpRequest(color, string[])
{
    foreach(Player, i)
    {
        if(PlayerInfo[i][pAdmin] == 1)
        {
            SendClientMessage(i, color, string);
        }
    }
    return 1;
}

or:
public HelpRequest(color, string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pAdmin] == 1)
            {
                SendClientMessage(i, color, string);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Custom function - by Lz - 15.12.2012, 13:58
Re: Custom function - by Djole1337 - 15.12.2012, 14:00
Re: Custom function - by Threshold - 15.12.2012, 14:01
Re: Custom function - by Mean - 15.12.2012, 14:02
Re: Custom function - by Lz - 15.12.2012, 14:19
Re: Custom function - by XStormiest - 15.12.2012, 14:33
Re: Custom function - by Lordzy - 15.12.2012, 14:38

Forum Jump:


Users browsing this thread: 4 Guest(s)