Help in this command.
#1

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;
        }
    }
}
I made a command to list all offline admin. Is this correct?
Reply


Messages In This Thread
Help in this command. - by krytans - 07.09.2014, 16:45
Re: Help in this command. - by Stinged - 07.09.2014, 18:17
Re: Help in this command. - by krytans - 07.09.2014, 18:24
Re: Help in this command. - by AroseKhanNiazi - 07.09.2014, 18:29
Re: Help in this command. - by krytans - 07.09.2014, 18:37
Re: Help in this command. - by Stinged - 07.09.2014, 18:53
Re: Help in this command. - by krytans - 07.09.2014, 18:58
Re: Help in this command. - by Stinged - 07.09.2014, 19:01
Re: Help in this command. - by krytans - 07.09.2014, 19:10

Forum Jump:


Users browsing this thread: 2 Guest(s)