[Ajuda] Criaзгo do /Admins
#10

Tente desta forma:
PHP Code:
CMD:admins(playerid

    new 
String[30], 
        
Nome[24], 
        
string[100], 
        
AdminList[100]; 
     
    for(new 
i<= GetPlayerPoolSize(); ++i
    { 
        if(
IsPlayerConnected(i)) 
        { 
            if(
Player[playerid][Admin] == 1String "Administrador"
            else if(
Player[playerid][Gerente] == 2String "Gerente"
            else 
String "Fundador"

            
GetPlayerName(i,Nome,24); 
            
format(string,sizeof(string),"%s %s[%d]",String,Nome,i); 
            
strcat(AdminList,string); 
        } 
    } 
    
    if (
strlen(AdminList) > 0
        
ShowPlayerDialog(playerid2345,DIALOG_STYLE_MSGBOX"# Administraзгo",AdminList,"Fechar",#); 
    
else 
        
SendClientMessage(playerid0xff0000ff,"[x] Nгo hб membros da administraзгo online no momento!"); 
        
    return 
1

Reply


Messages In This Thread
Criaзгo do /Admins - by Hunterx157 - 10.05.2018, 01:46
Re: Criaзгo do /Admins - by Izaque1998 - 10.05.2018, 01:58
Re: Criaзгo do /Admins - by Hunterx157 - 10.05.2018, 02:56
Re: Criaзгo do /Admins - by Izaque1998 - 10.05.2018, 03:32
Re: Criaзгo do /Admins - by Hunterx157 - 10.05.2018, 04:11
Re: Criaзгo do /Admins - by Izaque1998 - 10.05.2018, 18:31
Re: Criaзгo do /Admins - by FerrariL - 10.05.2018, 18:37
Re: Criaзгo do /Admins - by Hunterx157 - 12.05.2018, 00:17
Re: Criaзгo do /Admins - by AutoMatic2 - 12.05.2018, 00:55
Re: Criaзгo do /Admins - by FerrariL - 12.05.2018, 01:00
Re: Criaзгo do /Admins - by DarkBr - 12.05.2018, 01:52

Forum Jump:


Users browsing this thread: 1 Guest(s)