[Ajuda] Comando /admin em dialog
#2

Код:
Code:

CMD:admins(playerid)
{
	if(HaveAdminsOnline())
	{
		SendClientMessage(playerid,informacao,"Admin(s) Online:");
		new adm[15], frase[128], frasefinal[512];//ad[45];
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
				if(Player[i][admin] != 0)
				{
					switch(Player[i][admin])
					{
						case 1: adm = "Novato";
						case 2: adm = "Intermediario";
						case 3: adm = "Veterano";
						case 10: adm = "Master";
						case 11: adm = "Dono RCON";
					}
                    format(frase, sizeof(frase), "[ADMIN]~ %s [%s]\n", GetName(i), adm);
                    strcat(frasefinal, frase);
				}
			}
		}
        ShowPlayerDialog(playerid, DIALOG_ADMINSON, DIALOG_STYLE_MSGBOX, "Administradores Online", frasefinal, "OK", "");
	}
	else
        SendClientMessage(playerid,informacao,"Nгo hб admins online!");
    return 1;
}
Reply


Messages In This Thread
Comando /admin em dialog - by F1N4L - 03.05.2015, 14:21
Re: Comando /admin em dialog - by GabrielDias_Invision - 03.05.2015, 14:33
Re: Comando /admin em dialog - by Krusheer - 03.05.2015, 14:36
Respuesta: Re: Comando /admin em dialog - by F1N4L - 03.05.2015, 14:52
Respuesta: Re: Comando /admin em dialog - by F1N4L - 03.05.2015, 14:54
Re: Comando /admin em dialog - by Krusheer - 03.05.2015, 14:57

Forum Jump:


Users browsing this thread: 2 Guest(s)