08.01.2011, 10:18
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);
}
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");