Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
loop through the players and if their admin variable is greater than 0 then format a string and display to the player
I assume that is what you want /admins to do
Posts: 438
Threads: 54
Joined: Mar 2013
pawn Код:
CMD:admins(playerid,params[])
{
new str[256],Name[MAX_PLAYER_NAME];
foreach(new i:Player)
{
if(IsPlayerAdmin(i)||PlayerInfo[i][pAdmin]>0)
{
GetPlayerName(i,Name,sizeof(Name));
format(str,sizeof(str),"Name : %s | Level : %i",Name, pInfo[playerid][pAdmin]);
ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "{FF0000}Evolution Administrators", str, "OK", "Close")
}
}
return 1;
}
Posts: 438
Threads: 54
Joined: Mar 2013
Ooo, then why dont you help him ?