[Ajuda] /Admins Bugado
#9

Saudaзхes !

PHP код:
YCMD:admins(playeridparams[], help)
{
    if(
IsPlayerConnected(playerid)){
        new 
box300 ];
        
        static
            
STNG[80],
            
bool:Count false
        
;
        
        for(new 
0GetMaxPlayers(); i++){
            if(
IsPlayerConnected(i)){
                if(
P_Data[i][pAdmin] > 0){
                    new 
admin25 ];
                    switch(
P_Data[i][pAdmin]){
                        case 
1admin "[Level 1] - Beginner";
                        case 
2admin "[Level 2] - Smart";
                        case 
3admin "[Level 3] - Clever";
                        case 
4admin "[Level 4] - Expert";
                        case 
5admin "[Level 5] - Owner";
                    }
                    
Count true;
                    new 
SDNM[MAX_PLAYER_NAME];
                    
GetPlayerName(iSDNMsizeof(SDNM));
                    
format(STNG300"%s {FF0000}- {5252FF}[ID:%d] {FF0000}- {FF0000}%s\n"SDNMiadmin);
                    
strcat(STNGbox);
                }
            }
        }
        if(!
Count == true)
            
ShowPlayerDialog(playerid21323123DIALOG_STYLE_MSGBOX"Admins Online:""{FF0000}Nгo hб Admins online no momento!""Close""");
        else
            
ShowPlayerDialog(playerid21323123DIALOG_STYLE_LIST"Admins Online:"box"Close""");
    }
    return 
true;

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)