Making my admin system (Day 2)
#1

hello everyone i have made all the commands the the previous error is fixed now im in problem how can i make the /setlevel command

i have enumed

this all

pawn Код:
enum ServerData
{
    MaxAdminLevel, //it is in config file in a folder which is by default 5
};
new ServerInfo[ServerData];

enum pInfo {
    PLAYER_NAME[MAX_PLAYER_NAME],
    PLAYER_IP[16],
    PLAYER_REGGED,
    PLAYER_PASS,
    pcash,
    Jailed,
    LoggedIn,
    Level,
    Muted,
    Caps,
    CJailTime,
    Frozen,
    FreezeTime,
    Kills,
    Deaths,
    hours,
    mins,
    secs,
    TotalTime,
    ConnectTime,
    MuteWarnings,
    Warnings,
    Spawned,
    TimesSpawned,
    God,
    OnDuty,
    blip,
    blipS,
    pColour,
    SpecID,
    SpecType,
}
and i also have a file which stores players data

pawn Код:
#define PlayerFile "***/Users/%s.ini"
pawn Код:
dini_Create(file);
                dini_Set(file, "Name", name);
                dini_Set(file, "Ip", ip);
                dini_IntSet(file, "Registered", 1);
                format(strdate, sizeof(strdate), "%d/%d/%d",day,month,year);
                dini_Set(file, "Registered On:", strdate);
                dini_IntSet(file, "Password", num_hash(inputtext));
                dini_IntSet(file, "Level", 0);
                dini_IntSet(file, "Money", 50);
Reply
#2

Bump!!!
Reply
#3

Don't use dini use yini it's the same syntax but a lot faster.
Reply
#4

ok but i want a setlevel cmd
Reply
#5

Do it your self.
Try a tutorial.
IT will make you more experienced scripter
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)