[Ajuda] Dialog.
#6

Nгo,vocк tem que usar o cуdigo que te passei,vocк vai manter as funзхes e trocar sу o comando.
Sistema completo :
PHP код:
Cargos(playerid)
{
    new 
Str[25];
    if(
WE_GetInt(f(playerid), "AdminL") == 1)
    {
         
Str "Dono";
    }
    else if(
aInfo[playerid][Admin] == && WE_GetInt(f(playerid), "AdminL") == 0
    {
        
Str "Administrador";
    }
    else if(
aInfo[playerid][Moderador] == && WE_GetInt(f(playerid), "AdminL") == 0)
    {        
        
Str "Moderador";
    }
    else if(
aInfo[playerid][Ajudante] == && WE_GetInt(f(playerid), "AdminL") == 0)
    {        
        
Str "Ajudante";
    }
    else if(
aInfo[playerid][Corregedor] == && WE_GetInt(f(playerid), "AdminL") == 0)
    {
        
Str "Corregedor";
    }
    return 
Str;
}    

IsAdmin(playerid)
{
    if((
WE_GetInt(f(playerid), "AdminL") == 1) || aInfo[playerid][Admin] == && WE_GetInt(f(playerid), "AdminL") == || aInfo[playerid][Moderador] == && WE_GetInt(f(playerid), "AdminL") == || aInfo[playerid][Ajudante] == && WE_GetInt(f(playerid), "AdminL") == || aInfo[playerid][Corregedor] == && WE_GetInt(f(playerid), "AdminL") == 0)  
    return 
true;
    else return 
false;
}    
    
if(!
strcmp(cmd"/admins"true) || !strcmp(cmd"/mods"true) || !strcmp(cmd"/administradores"true) || !strcmp(cmd"/moderadores"true))
{
    
SendClientMessage(playeridAZUL_WE"Administraзгo online:");
    new
    
adml,Str[80];
    
    foreach(
Playeri)
    {
        if(
IsAdmin(playerid))
        {
            if(
aInfo[i][Oculto] == false)
            {
                
adml ++;
                
format(stringsizeof(string), "{FF1E1E}%s [%d] {FFFFFF}- Cargo: {328E0A}%s\n"PlayerName(i), i,Cargos(i));
                
strcat(Str,string);
            }
        }
    }
    
ShowPlayerDialog(playerid4444DIALOG_STYLE_TABLIST"Administradores",Str,"Ok","");
    if(
adm1 == 0SendClientMessage(playeridVERMELHO_WE"Nenhum membro da administraзгo conectado no momento.");
    return 
1;

Reply


Messages In This Thread
Dialog. - by ViniZiNN - 30.03.2018, 22:23
Re: Dialog. - by FerrariL - 30.03.2018, 22:36
Re: Dialog. - by ViniZiNN - 30.03.2018, 22:58
Re: Dialog. - by FerrariL - 30.03.2018, 23:04
Re: Dialog. - by ViniZiNN - 30.03.2018, 23:12
Re: Dialog. - by FerrariL - 30.03.2018, 23:16
Re: Dialog. - by ViniZiNN - 30.03.2018, 23:21
Re: Dialog. - by FerrariL - 30.03.2018, 23:25
Re: Dialog. - by ViniZiNN - 30.03.2018, 23:29
Re: Dialog. - by FerrariL - 30.03.2018, 23:32

Forum Jump:


Users browsing this thread: 2 Guest(s)