SA-MP Forums Archive
SendMessageToAdmins - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SendMessageToAdmins (/showthread.php?tid=577722)



SendMessageToAdmins - _GHT_MarK445 - 13.06.2015

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!!!!!


Re: SendMessageToAdmins - [XST]O_x - 13.06.2015

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



Re: SendMessageToAdmins - _GHT_MarK445 - 13.06.2015

Thanks.. repped you.