11.07.2015, 18:23
Tenta ae
pawn Код:
CMD:admins(playerid)
{
if(HaveAdminsOnline())
{
SendClientMessage(playerid,Rosa,"Admin(s) Online:");
new adm[15], ad[45], Lista[120];
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 11: adm = "Dono";
case 10: adm = "Master";
format(Lista, sizeof(Lista), "%s%s [%s]\n", Lista, GetName(i), adm);
}
new var[100];
format(var ,sizeof(var), "Administradores Online's");
ShowPlayerDialog(playerid, DialogNoResponse, DIALOG_STYLE_MSGBOX, var, Lista, "Ok", "Fechar");
}
}
}
}
else SendClientMessage(playerid,Azul,"Nгo hб admins online!");
return 1;
}