[Ajuda] /Admins Bugado
#5

PHP код:
YCMD:ad(playeridparams[], help)
{
  if(
IsPlayerConnected(playerid))
    {
        new 
STNG[300];
        for(new 
0MAX_PLAYERSi++)
        {
            if(
IsPlayerConnected(i))
            {
                if(
P_Data[i][pAdmin] > 1)
                {
                        new 
admin[20];
                        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 - [ID:%d] - %s"SDNMiadmin);
                }
                else
                {
                
SendClientMessage(COR_Definida128"Nгo temos nenhum admin online no momento.");
                }
            }
        }
        
ShowPlayerDialog(playerid21323123DIALOG_STYLE_LIST"Admins Online:"STNG"Close""");
    }
    return 
1;

Tenta ae
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: 2 Guest(s)