Quote:
Originally Posted by » Titan «
pawn Код:
forward MessageToAdmins(color,const string[]); public MessageToAdmins(color,const string[]) { for(new i = 0; i <= MAX_PLAYERS; i++) { if(IsPlayerConnected(i) == 1) { if(PlayerInfo[i][pAdmin] < 5) { SendClientMessage(i, color, string); } } } return 1; }
now you can use: MessageToAdmins(COLOR,string);
|
Thats checking if their admin is lower that 5, therefore even players that aren't admins will get the message, nice job