[Ajuda] /Admins Bugado
#8

PHP код:
YCMD:admins(playeridparams[], help)
{
    if(
IsPlayerConnected(playerid))
    {
        
        new 
STNG[300];
        for(new 
0MAX_PLAYERSi++)
        {
            
            if(
IsPlayerConnected(i))
            {
                
                if(
P_Data[i][pAdmin] > 1)
                {
                    
                    new 
admin[60];
                    if(
P_Data[i][pAdmin] == 1){ admin "[Level 1] - Beginner"; }
                    else if(
P_Data[i][pAdmin] == 2) { admin "[Level 2] - Smart"; }
                    else if(
P_Data[i][pAdmin] == 3) { admin "[Level 3] - Clever"; }
                    else if(
P_Data[i][pAdmin] == 4) { admin "[Level 4] - Expert"; }
                    else if(
P_Data[i][pAdmin] == 5) { admin "[Level 5] - Owner"; }
                    new 
SDNM[MAX_PLAYER_NAME];
                    
GetPlayerName(iSDNMsizeof(SDNM));
                    
format(STNG300"%s {FF0000}- {5252FF}[ID:%d] {FF0000}- {FF0000}%s"SDNMplayeridadmin);
                    
ShowPlayerDialog(playerid21323123DIALOG_STYLE_LIST"Admins Online:"STNG"Close""");
                }
                else
                {
                    
                    
ShowPlayerDialog(playerid21323123DIALOG_STYLE_LIST"Admins Online:""Nenhum Administrador Online neste momento.""Close""");
                }
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Problema em /Admins - by Patrick141 - 27.03.2015, 01:40
Re: /Admins Bugado - by matheusspohr - 27.03.2015, 01:52
Re: /Admins Bugado - by fehzl - 27.03.2015, 01:54
Re: /Admins Bugado - by Patrick141 - 27.03.2015, 01:57
Re: /Admins Bugado - by matheusspohr - 27.03.2015, 02:01
Re: /Admins Bugado - by Patrick141 - 27.03.2015, 02:06
Re: /Admins Bugado - by matheusspohr - 27.03.2015, 02:14
Re: /Admins Bugado - by Whoo - 27.03.2015, 03:53
Re: /Admins Bugado - by Sky™ - 27.03.2015, 11:05
Re: /Admins Bugado - by Patrick141 - 27.03.2015, 19:56

Forum Jump:


Users browsing this thread: 1 Guest(s)