21.09.2018, 15:32
PHP код:
playername(playerid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
return pname;
}
CMD:admins(playerid)
{
new count = 0;
new str[200];
for(new i; i<MAX_PLAYERS;i++)
{
if(MakeVariableOfAdmin[i] > 0)
{
format(str, sizeof str, "%s[%d] || Admin Level: %d\n", "Close", "", playername(i), i, MakeVariableOfAdmin[i]);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Current online Admins:", str, "", "Close");
count++;
}
}
if (count == 0) ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Current online Admins:", "No admins online\n_____________________", "Close", "");
return 1;
}