07.09.2014, 16:45
pawn Код:
CMD:oadmin(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] > 100001) return SendClientMessage(playerid, COLOR_GRAD, "You are not authorized to use this command!");
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
format(string, sizeof(string), "users/%s.ini", i);
new alevel = dini_Get(string, "AdminLvl")
if(alevel > 0)
{
format(string, sizeof(string), "%s -level %s lastlogin [%s]",i, alevel, dini_Get(string, "LastLogin"));
SendClientMessage(playerid, COLOR_WHITE, string);
break;
}
}
}