13.07.2017, 16:16
Код:
if(strcmp(cmd, "/admins", true) == 0) { new str[130], Info[512], admtext[64], count = 0; format(Info, sizeof Info, "Administrador\tNнvel\n"); for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][pAdmin] >= 1) { if(PlayerInfo[i][pAdmin] == 3000) { admtext = "Fundador/Scripter"; } if(PlayerInfo[i][pAdmin] == 1342) { admtext = "Dono"; } if(PlayerInfo[i][pAdmin] == 1341) { admtext = "Sub-Dono"; } if(PlayerInfo[i][pAdmin] == 1340) { admtext = "Gerente"; } if(PlayerInfo[i][pAdmin] == 1339) { admtext = "Supervisor"; } if(PlayerInfo[i][pAdmin] == 1338) { admtext = "Administrador Master +"; } if(PlayerInfo[i][pAdmin] == 1337) { admtext = "Administrador Master"; } if(PlayerInfo[i][pAdmin] == 4) { admtext = "Administrador ++"; } if(PlayerInfo[i][pAdmin] == 3) { admtext = "Administrador"; } if(PlayerInfo[i][pAdmin] == 2) { admtext = "Moderador"; } if(PlayerInfo[i][pAdmin] == 1) { admtext = "Estagiario"; } format(str, 10000, "%s\t%s\n", sendername(i), admtext); strcat(Info, str); count++; } } if(count == 0) format(Info, 10000, "[INFO:] De momento nгo estб nenhum membro da Staff em serviзo.\n"); count = 0; ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_TABLIST_HEADERS, "{FF69B4}Administradores Online:", Info, "Fechar", ""); return 1; }