29.05.2018, 16:19
Olб pessoal.
Alguйm poderia, por favor, converter esse /Admins em dialog?:
Alguйm poderia, por favor, converter esse /Admins em dialog?:
pawn Код:
if(!strcmp(cmd, "/admins", true) || !strcmp(cmd, "/mods", true) || !strcmp(cmd, "/administradores", true) || !strcmp(cmd, "/moderadores", true))
{
SendClientMessage(playerid, AZUL_BMO, "{FFFFFF}• {00AFCA}Staff's disponнveis:");
new
adml, adm, mdr, hlp, crg
;
foreach(Player, i)
{
if(BMO_GetInt(f(i), "AdminL") == 1)
{
if(aInfo[i][Oculto] == false)
{
adml ++;
format(string, sizeof(string), "~ %s [ID:%d] {1E90FF}Dono", PlayerName(i), i);
SendClientMessage(playerid, -1, string);
}
}
if(aInfo[i][Admin] == 1 && BMO_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 && BMO_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 && BMO_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 && BMO_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, VERMELHO_BMO, "Nenhum Administrador(a) online no Momento !");
return 1;
}