27.01.2013, 04:58
VE SE TA CERTO
Код:
if (strcmp("/Admins", cmdtext, true, 10) == 0) { new IsAdmin; SendClientMessage(playerid, ROSA, "Admin Online:"); for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerDados[i][Admin] > 0) { if(PlayerDados[i][Admin] == 1) AdminNivel = "Helper"; if(PlayerDados[i][Admin] == 2) AdminNivel = "Colaborador"; if(PlayerDados[i][Admin] == 3) AdminNivel = "Moderador"; if(PlayerDados[i][Admin] == 4) AdminNivel = "Master"; if(PlayerDados[i][Admin] == 5) AdminNivel = "Fundador/Scripter"; if(PlayerDados[i][Trabalhando] == true) AdminTrabalhando = "Trabalhando"; if(PlayerDados[i][Trabalhando] == false) AdminTrabalhando = "Jogando"; format(String, sizeof(String), "%s | %s | %s", Nome(i), AdminNivel, AdminTrabalhando); SendClientMessage(playerid, LARANJA, String); IsAdmin ++; } } if(IsAdmin == 0) { SendClientMessage(playerid, CINZA, "Nenhum Admin Online!"); } IsAdmin = 0; return 1; }