SA-MP Forums Archive
[Ajuda] alguйm pode me ajuda a colocar em dialog, nгo consegui - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] alguйm pode me ajuda a colocar em dialog, nгo consegui (/showthread.php?tid=611793)



alguйm pode me ajuda a colocar em dialog, nгo consegui - Victor0 - 10.07.2016

if(!strcmp(cmd, "/admins", true) || !strcmp(cmd, "/mods", true) || !strcmp(cmd, "/administradores", true) || !strcmp(cmd, "/moderadores", true))
{
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), "{00FF66}%s [%d] {00FF66}- Cargo: {00FF66}Staff", PlayerName(i), i);
SendClientMessage(playerid, VERMELHO_WE, string);
}
}
if(aInfo[i][Admin] == 1 && WE_GetInt(f(i), "AdminL") == 0)
{
if(aInfo[i][Oculto] == false)
{
adm ++;
format(string, sizeof(string), "{0099FF}%s [%d] {0099FF}- Cargo: {0099FF}Administrador(a)", PlayerName(i), i);
SendClientMessage(playerid, VERMELHO_WE, string);
}
}
if(aInfo[i][Moderador] == 1 && WE_GetInt(f(i), "AdminL") == 0)
{
if(aInfo[i][Oculto] == false)
{
mdr ++;
format(string, sizeof(string), "{FF6600}%s [%d] {FF6600}- Cargo: {FF6600}Moderador(a)", PlayerName(i), i);
SendClientMessage(playerid, AZUL_WE, string);
}
}
if(aInfo[i][Ajudante] == 1 && WE_GetInt(f(i), "AdminL") == 0)
{
if(aInfo[i][Oculto] == false)
{
hlp ++;
format(string, sizeof(string), "{FAF65D}%s [%d] {FAF65D}- Cargo: {FAF65D}Ajudante", PlayerName(i), i);
SendClientMessage(playerid, AZUL_WE, string);
}
}
if(aInfo[i][Corregedor] == 1 && WE_GetInt(f(i), "AdminL") == 0)
{
if(aInfo[i][Oculto] == false)
{
crg ++;
format(string, sizeof(string), "{1E90FF}%s [%d] {FFFFFF}- Cargo: {8000FF}Corregedor(a)", PlayerName(i), i);
SendClientMessage(playerid, AZUL_WE, string);
}
}
}
if(adm == 0 && mdr == 0 && adml == 0 && hlp == 0 && crg == 0) return SendClientMessage(playerid, VERMELHO_WE, "Nenhum admin online no momento.");
return 1;
}


Re: alguйm pode me ajuda a colocar em dialog, nгo consegui - zSuYaNw - 11.07.2016

Mude a tag "Ajuda" para "Pedido" ou mostre oque vocк tentou que tentarei te ajudar.