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

Tenta com esse:
Code:
COMMAND:admins(playerid, params[]) 
{ 
    new 
    String[15], Nome[MAX_PLAYER_NAME], string[50], 
        	AdminList[400]; 
     
    for(new j=GetPlayerPoolSize(),i; i!=j; ++i)
    { 
        if( IsPlayerConnected(i) && Player[i][Admin] ) 
        { 
        	GetPlayerName(i, Nome, sizeof Nome); 
        	switch(Player[ i ][Admin]) {
        		case 1:String = "Administrador";
        		case 2:String = "Gerente"; 
        		case 3:String = "Fundador"; 
        	}
        	format( string, sizeof string),"Nome %s ID %i Cargo %s\r\n", Nome, i, String); 
            strcat( AdminList, string, sizeof AdminList); 
        }
        if(!strlen(AdminList)) {
        	SendClientMessage(playerid, 0xff0000ff,"[x] Nгo hб membros da administraзгo online no momento!"); 
        }
        else { 
        	ShowPlayerDialog(playerid, 2345, DIALOG_STYLE_MSGBOX, "# Administraзгo",AdminList,"Fechar",#); 
        } 
    } 
    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: 2 Guest(s)