23.08.2011, 17:08
(
Last edited by Jeffry; 23/08/2011 at 05:15 PM.
Reason: Adding the 'No admins...'
)
pawn Code:
dcmd_admins(playerid,params[])
{
#pragma unused params
new string[400], admins;
for(new i = 0; i < MAX_PLAYERS; i++) if(Variables[i][Level] >0 && Variables[i][Level] < 10) admins++;
if(admins > 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(Variables[i][Level] >0 && Variables[i][Level] < 10)
{
format(string, sizeof(string), "%s{FF0000}ADMINISTRATOR: %s ID[%d]{15D4ED}[Level %d]\n",string, RealName[i],playerid, Variables[i][Level]);
ShowPlayerDialog(playerid, 5591, 0, "{1B1BE0}Online Admins:", string, "Done", "");
}
}
}
else ShowPlayerDialog(playerid, 5591, 0, "{1B1BE0}Online Admins:", "There are no Administrators online.", "Done", "");
return 1;
}
Jeffry

