SA-MP Forums Archive
[Ajuda] bug - 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] bug (/showthread.php?tid=364522)



bug - Bruno Alves - 30.07.2012

gente aqui nesse admins aparece os admins e outras pessoas que с sгo onde pode estar esse bug??

PHP код:
CMD:admins(playerid)
{
    new 
gString2[1024], Nomeado[50];
    for(new 
0MAX_PLAYERSi++)
    {
        
GetPlayerName(igAdminNamesizeof(gAdminName));
        if(
Informacoes[i][PlayerAdmin] >= 1)
        {
            if(
Informacoes[i][PlayerAdmin] == 1Nomeado "Helper";
            if(
Informacoes[i][PlayerAdmin] == 2Nomeado "Moderador";
            if(
Informacoes[i][PlayerAdmin] == 3Nomeado "Administrador";
            if(
Informacoes[i][PlayerAdmin] == 4Nomeado "Administrador Geral";
            if(
Informacoes[i][PlayerAdmin] == 5Nomeado "Sub-Dono";
            if(
Informacoes[i][PlayerAdmin] == 6Nomeado "Dono";
            
format(gStringsizeof(gString), "{FF0000}Administrador:{FFFFFF} %s{FF0000} - Level{FFFFFF} %d{FF0000} - Hierarquia:{FFFFFF} %s\n"gAdminNameInformacoes[i][PlayerAdmin], Nomeado);
            
strcat(gString2gStringsizeof(gString2));
         }
    }
    if(
Informacoes[playerid][PlayerAdmin] < 1)
    {
        
format(gStringsizeof(gString), "Administraзгo Offline no Momento!");
        
ShowPlayerDialog(playerid10DIALOG_STYLE_MSGBOX"Administraзгo Online"gString"Fechar""");
     }
    
ShowPlayerDialog(playerid10DIALOG_STYLE_MSGBOX"Administraзгo Online"gString2"Fechar""");
    return 
1;




Re: bug - Victor' - 31.07.2012

pawn Код:
CMD:admins(playerid)
{
    new gString2[1024], Nomeado[50], count;

    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        GetPlayerName(i, gAdminName, sizeof(gAdminName));
        if(Informacoes[i][PlayerAdmin] >= 1 && IsPlayerConnected(playerid) && i != 0xff)
        {
            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));
            count++;
         }
    }
    if(count < 1)
    {
        format(gString, sizeof(gString), "Administraзгo Offline no Momento!");
        ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "Administraзгo Online", gString, "Fechar", "");
    }
    else
    {
        ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "Administraзгo Online", gString2, "Fechar", "");
    }
    return 1;
}



Re: bug - Bruno Alves - 31.07.2012

e quando loga vc ganha admin muito estranho isso alguem recomenda um fs de admin para dm?


Re: bug - Diogo123 - 31.07.2012

Quote:
Originally Posted by Bruno Alves
Посмотреть сообщение
e quando loga vc ganha admin muito estranho isso alguem recomenda um fs de admin para dm?
Ladmin4v2 do Lethal


Re: bug - Bruno Alves - 31.07.2012

tem o link?


Re: bug - [BCV]Dr.House_. - 31.07.2012

Quote:
Originally Posted by Bruno Alves
Посмотреть сообщение
e quando loga vc ganha admin muito estranho isso alguem recomenda um fs de admin para dm?
O Melhor que eu ja vi ate hoje, й o LLAdmin: https://sampforum.blast.hk/showthread.php?tid=329307
Por min й o melhor, tipo o meu GameMode estava com esse problema de quando entra, pessoas que nгo sгo adms, ganhava adms, mais acho que foi o Murilo que resolveu isso, vou ver com ele aqui pra ver se ele te ajuda


Re: bug - Diogo123 - 31.07.2012

Quote:
Originally Posted by Bruno Alves
Посмотреть сообщение
tem o link?
Ta ai http://www.4shared.com/file/12155564...LAdmin4v2.html