27.02.2017, 12:29
Olб sou novo no samp nгo sei muitas coisas do panw queria ajuda de vcs como colocar /admins em dialog tentei muito mais nгo conseguir obrigando !
Код:
if(!strcmp(cmd, "/admins", true) || !strcmp(cmd, "/mods", true) || !strcmp(cmd, "/administradores", true) || !strcmp(cmd, "/moderadores", true)) { SendClientMessage(playerid, COR_BRANCO, "Equipe da Staff's disponнveis:"); new adml, adm, mdr, hlp, crg ; foreach(Player, i) { if(WE_GetInt(f(i), "AdminL") == 1) { if(aInfo[i][Oculto] == false) { adml ++; format(string, sizeof(string), "~ %s [ID:%d] {00FF7F}Dono", PlayerName(i), i); SendClientMessage(playerid, -1, string); } } if(aInfo[i][Admin] == 1 && WE_GetInt(f(i), "AdminL") == 0) { if(aInfo[i][Oculto] == false) { adm ++; format(string, sizeof(string), "~ %s [ID:%d] {1E90FF}Administrador", PlayerName(i), i); SendClientMessage(playerid, -1, string); } } if(aInfo[i][Moderador] == 1 && WE_GetInt(f(i), "AdminL") == 0) { if(aInfo[i][Oculto] == false) { mdr ++; format(string, sizeof(string), "~ %s [ID:%d] {00FF7F}Moderador", PlayerName(i), i); SendClientMessage(playerid, -1, string); } } if(aInfo[i][Ajudante] == 1 && WE_GetInt(f(i), "AdminL") == 0) { if(aInfo[i][Oculto] == false) { hlp ++; format(string, sizeof(string), "~ %s [ID:%d] {FFA500}Ajudante", PlayerName(i), i); SendClientMessage(playerid, -1, string); } } if(aInfo[i][Corregedor] == 1 && WE_GetInt(f(i), "AdminL") == 0) { if(aInfo[i][Oculto] == false) { crg ++; format(string, sizeof(string), "~ %s [ID:%d] {00BFFF}Corregedor", PlayerName(i), i); SendClientMessage(playerid, -1, string); } } } if(adm == 0 && mdr == 0 && adml == 0 && hlp == 0 && crg == 0) return SendClientMessage(playerid, COR_BRANCO, "Nenhum Administrador(a) {00FF7F}online {FFFFFF}no Momento !"); return 1; }