SA-MP Forums Archive
SendAdminMessage stock - 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: SendAdminMessage stock (/showthread.php?tid=445671)



SendAdminMessage stock - _Khaled_ - 22.06.2013

sorry guys, I need to know how to make a stock to send admin message to all admins online
pawn Код:
enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths
}
how?


Re: SendAdminMessage stock - lean1337 - 22.06.2013

pawn Код:
forward SendAdminMessage(color, string[]);
public SendAdminMessage(color, string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PlayerInfo[i][pAdmin] >= 1)
            {
                SendClientMessage(i, color, string);
            }
        }
    }
}



Re: SendAdminMessage stock - Oscii - 22.06.2013

removed