SendMessageToAdmins
#1

Hey guys, i have another problem here.

How can i send the message, just to players with certain array?

For example if player is pAdmin[playerid] = 1; it will send him the message, so just for players, which have 1 in array pAdmin, hope you know what i mean, thanks.

Best way, to make it to stock. That i can just do:

SendMessageToAdmins(i, "hey guuuuuuys");

And also even better, that it would be enabled to be formatted, thanks again!!!!!
Reply
#2

pawn Код:
SendMessageToAdmins(fromLevel, msg[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(playerid) && pAdmin[playerid] >= fromLevel) SendClientMessage(i, COLOR, msg);
    }
    return 1;
}
Reply
#3

Thanks.. repped you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)