11.02.2017, 08:45
please need help admins to dialog
Код:
CMD:admins(playerid, params[]) { if(IsPlayerConnected(playerid)) { new string[128]; SendClientMessage(playerid, 0xFC9803AA, "Administrбtoři On-line:"); for(new i=0; i <= GetPlayerPoolSize(); i++) { if(IsPlayerConnected(i)) { if(IsPlayerAdmin(i) && AdminLevel[i] < 1) { format(string, 128, "[On-line] %s - > RCON", jmeno(i)); SendClientMessage(playerid, 0x0EDBF1AA, string); } else if(AdminLevel[i] > 0 && !IsPlayerAdmin(i)) { format(string, 128, "[On-line] %s - > ADMIN", jmeno(i)); SendClientMessage(playerid, 0x0EDBF1AA, string); } else if(IsPlayerAdmin(i) && AdminLevel[i] > 0) { format(string, 128, "[On-line] %s - > Admin+ RCON", jmeno(i)); SendClientMessage(playerid, 0x0EDBF1AA, string); } } } } return 1; }