12.09.2014, 04:49
I want to list the admin accounts? Could anyone tell me how to do it?
CMD:oadmin(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin]< 100001) return SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use this command!");
foreach(Player, i)
{
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
format(string, sizeof(string), "users/%s.ini", i);
new alevel = dini_Int(string, "AdminLvl");
new las = dini_Int(string, "LastLogin");
if(alevel > 0)
{
format(string, sizeof(string), " Name- %s Level- %s LastLogin- %s", i, alevel, las);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
}
}
return 1;
}