Need help with MessageToAdmins
#9

pawn Код:
stock MessageToAdmins(reqlvl, color, msg[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerAdmin(i) || PlayerInfo[i][pAdminLevel] >= reqlvl)
            SendClientMessage(i, color, msg);
}
USAGE:
MessageToAdmins(LEVEL_NEEDED, COLOR, MESSAGE);
Example, if you wanna send a message to all the admins with level 2 and higher, msg "Hi" , red color:
MessageToAdmins(2, 0xFF0000AA, "Hi");
Reply


Messages In This Thread
Need help with MessageToAdmins - by xir - 08.01.2011, 07:58
Re: Need help with MessageToAdmins - by iggy1 - 08.01.2011, 08:03
Re: Need help with MessageToAdmins - by Ash. - 08.01.2011, 08:16
Re: Need help with MessageToAdmins - by xir - 08.01.2011, 08:23
Re: Need help with MessageToAdmins - by xir - 08.01.2011, 09:39
Re: Need help with MessageToAdmins - by Alex_Valde - 08.01.2011, 10:03
Re: Need help with MessageToAdmins - by DVDK - 08.01.2011, 10:08
Re: Need help with MessageToAdmins - by Kyosaur - 08.01.2011, 10:11
Re: Need help with MessageToAdmins - by Kwarde - 08.01.2011, 10:18
Re: Need help with MessageToAdmins - by xir - 08.01.2011, 10:22

Forum Jump:


Users browsing this thread: 1 Guest(s)