SendClientMessageToALL only for LoggedON == 1 ?
#3

pawn Код:
stock SendClientMessageToAllEx(color, const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++) //Foreach is recommended here.
    {
        if(!IsPlayerConnected(i)) continue; //Remove if you are using foreach.
        if(!LoggedOn[i]) continue; //This means, if they are not logged in, skip them.
        SendClientMessage(i, color, string);
    }
    return 1;
}
Reply


Messages In This Thread
SendClientMessageToALL only for LoggedON == 1 ? - by Kapone21 - 13.02.2014, 22:43
Re: SendClientMessageToALL only for LoggedON == 1 ? - by jtemple042996 - 13.02.2014, 22:45
Re: SendClientMessageToALL only for LoggedON == 1 ? - by Threshold - 14.02.2014, 00:15

Forum Jump:


Users browsing this thread: 1 Guest(s)