12.07.2015, 15:19
pawn Код:
CMD:admins(playerid)
{
new String[128], String2[128], adm[10];
if(HaveAdminsOnline())
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(Player[i][admin] >= 1)
{
switch(Player[i][admin])
{
case 1: adm = "Nнvel 1";
case 2: adm = "Nнvel 2";
case 3: adm = "Nнvel 3";
case 10: adm = "Nнvel 10";
case 11: adm = "Nнvel 11";
}
format(String,sizeof(String),"ID: %d - Nick: %s - %s\\n",i,GetName(i),Player[i][admin],adm); strcat(String2, String);
}
}
ShowPlayerDialog(playerid, 55+2, DIALOG_STYLE_MSGBOX, "Administradores",String2,"Fechar", "");
}
else ShowPlayerDialog(playerid, 55+3, DIALOG_STYLE_MSGBOX, "Administradores","Nenhum admin online\nCaso veja xiters tira uma print (F8) e poste em nosso forum.","Fechar", "");
return 1;
}