24.01.2012, 13:59
here you are:
pawn Код:
dcmd_admins(playerid, params[])
{
SendClientMessage(playerid, COLOR_YELLOW, "Online admins:");
new chose;
for(new i=0;i<MAX_PLAYERS;i++)
{
if(AccountInfo[i][aLevel] > 0)
{
new name[60], string[100];
GetPlayerName(i, name, 60);
format(string, 100, "%s[%i] Level: %i", name, i, AccountInfo[i][aLevel]);
SendClientMessage(playerid, COLOR_WHITE, string);
chose = 1;
}
}
if(chose == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "No administrators online!");
}
return 1;
#pragma unused params
}