04.09.2012, 21:33
pawn Код:
YCMD:admins(playerid,params[],ajuda)
{
#pragma unused ajuda
new Count, Admins[512],Levels[50],Trabalhos[100];
Loop(i,MAX_PLAYERS)
{
if(IsPlayerConnected(i))
{
if(Player[i][Admin] > 0)
{
if(Player[i][Admin] == 1) Levels = "Tester";
if(Player[i][Admin] == 2) Levels = "Auxiliar";
if(Player[i][Admin] == 3) Levels = "Sub-Admin";
if(Player[i][Admin] == 4) Levels = "Admin";
if(Player[i][Admin] == 5) Levels = "Dono";
if(Player[i][Trabalho] == false) Trabalhos = "Jogando";
if(Player[i][Trabalho] == true) Trabalhos = "Trabalhando";
if(Count == 1) format(Admins,sizeof(Admins),"{FEFEFE}Admin: {23FF00}%s {FEFEFE}Level: {23FF00}%s {FEFEFE}Server: {23FF00}%s",Nome(i),Levels,Trabalhos);
else format(Admins,sizeof(Admins),"%s\n{FEFEFE}Admin: {23FF00}%s {FEFEFE}Level: {23FF00}%s {FEFEFE}Server: {23FF00}%s",Admins,Nome(i),Levels,Trabalhos);Count++;
}
}
else if(Count == 0) return SendClientMessage(playerid,0xFF6400FF,"Nгo a Admins Online");
}
ShowPlayerDialog(playerid,9999,DIALOG_STYLE_MSGBOX,"{FEFEFE}Admins",Admins,"Confirmar","");
Count = 0;
return 1;
}