04.12.2012, 22:27
Код:
CMD:admins(playerid) { new gString2[500], Nomeado[50]; for(new i = 0; i < MAX_PLAYERS; i++) { if(Informacoes[i][PlayerAdmin] < 1) continue; GetPlayerName(i, gAdminName, sizeof(gAdminName)); if(Informacoes[i][PlayerAdmin] >= 1) { if(Informacoes[i][PlayerAdmin] == 1) Nomeado = "Helper"; if(Informacoes[i][PlayerAdmin] == 2) Nomeado = "Moderador"; if(Informacoes[i][PlayerAdmin] == 3) Nomeado = "Administrador"; if(Informacoes[i][PlayerAdmin] == 4) Nomeado = "Administrador Geral"; if(Informacoes[i][PlayerAdmin] == 5) Nomeado = "Sub-Dono"; if(Informacoes[i][PlayerAdmin] == 6) Nomeado = "Dono"; format(gString, sizeof(gString), "{FF0000}Administrador:{FFFFFF} %s{FF0000} - Level{FFFFFF} %d{FF0000} - Hierarquia:{FFFFFF} %s\n", gAdminName, Informacoes[i][PlayerAdmin], Nomeado); strcat(gString2, gString, sizeof(gString2)); } } if(Informacoes[playerid][PlayerAdmin] < 1) { format(gString, sizeof(gString), "Administraзгo Offline no Momento!"); ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "Administraзгo Online", gString, "Fechar", ""); } ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "Administraзгo Online", gString2, "Fechar", ""); return 1; }
Cуdigo feio pqp