[Ajuda] bug
#1

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;

Reply
#2

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;
}
Reply
#3

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

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
Reply
#5

tem o link?
Reply
#6

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
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)