23.01.2015, 16:25
Hello. We have created a system to log and send message only to one player. How can I send a message to all admins are included with the level between 5 and 6.
PHP код:
#define LogMessage(%0,%1,%2,%3) format(string, sizeof(string),%2,%3) && SendClientMessage(%0, %1, string)
for(new i = 0; i < MAX_PLAYERS; i ++) { if(PlayerInfo[i][pLanguage] == 1 && PlayerInfo[i][pAdmin] >= 5) return LogMessage(i, COLOR_LOG, "AdmCmd: %s a acceptat report-ul lui %s.", sendername, giveplayer); else
if(PlayerInfo[i][pLanguage] == 2 && PlayerInfo[i][pAdmin] >= 5) return LogMessage(i, COLOR_LOG, "AdmCmd: %s accepted report of %s.", sendername, giveplayer); }