[Ajuda] Comando /admins
#4

Quote:
Originally Posted by G4M30V3R
Посмотреть сообщение
Код:
CMD:admins(playerid)
{
	new i = 0, fmt[50], nome[24];
	
    while(i<MAX_PLAYERS)
	{
		if(pAdmin[i][Level])
		{
			GetPlayerName(i, nome, sizeof nome);
			format(fmt, sizeof fmt, "%s | Level %d", nome, pAdmin[i][Level]);
			SendClientMessage(playerid, -1, fmt);
		}
		
		i ++;
	}
    return 1;
}
Quote:
Originally Posted by vPunisheR
Посмотреть сообщение
Код:
CMD:admins(playerid)
{
	new Nome[24];
	for(new i; i < MAX_PLAYERS; i++)
 	{
 	    if(pAdmin[i][Level] > 0)
 	    {
 	        GetPlayerName(i,Nome, sizeof Nome);
		format(frm,sizeof(frm), "%s | Level %d",Nome, pAdmin[i][Level]);
		SendClientMessage(playerid,1,frm);
 	    }
	}
	return 1;
}
Obrigado aos dois. Uma ъltima dъvida. Como eu faria pro comando pegar a "descriзгo" dos leveis administrativos na stock?

pawn Код:
stock GetLevelAdmin(levelid)
{
    new str[50];
    if(levelid == 1)
    {
        str = "{8FF7BF}Helper";
    }
    else if (levelid == 2)
    {
        str = "{00CCFF}Moderador";
    }
    else if (levelid == 3)
    {
        str = "{0000FF}Administrador";
    }
    else if (levelid == 4)
    {
        str = "{FF0000}Inspetor";
    }
    else if (levelid == 5)
    {
        str = "{23E605}Gerente";
    }
    return str;
}
Reply


Messages In This Thread
Comando /admins - by Feelipe - 24.03.2017, 13:44
Re: Comando /admins - by G4M30V3R - 24.03.2017, 14:47
Re: Comando /admins - by vPunisheR - 24.03.2017, 15:38
Re: Comando /admins - by Feelipe - 24.03.2017, 21:02
Re: Comando /admins - by IlanZ - 24.03.2017, 21:05
Re: Comando /admins - by Feelipe - 24.03.2017, 21:15
Re: Comando /admins - by CaioTJF - 25.03.2017, 00:23
Re: Comando /admins - by vPunisheR - 25.03.2017, 02:12

Forum Jump:


Users browsing this thread: 1 Guest(s)