17.12.2009, 11:57
Код:
stock SendStaffMessage(COLOR,Message[],lvl) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if (AccountInfo[i][aAdmin] >= adminlevel) { SendClientMessage(i, COLOR, text); } } } return 1; }
SendStaffMessage(RED,"hello",1); //for level admin 1 or +
SendStaffMessage(RED,"hello",2); //for level admin 2 or +
SendStaffMessage(RED,"hello",3); //for level admin 3 or +
SendStaffMessage(RED,"hello",4); //for level admin 4 or +