pAdmin/AdminLevel etc.
#1

This might sound like a silly question for you, but how do you create pAdmin/AdminLevel(basically, a self-made admin system)?
Well, wiki said with enum etc (https://sampwiki.blast.hk/wiki/Creating_...l_admin_script)
But could someone explain me how it exactly works?
xd
Reply
#2

LOL
Reply
#3

Do you have any sort of saving system? Ini or SQL or something?

If you don't here is a little tutorial for y_ini, it also has pAdmin on it.. So check that out

https://sampforum.blast.hk/showthread.php?tid=273088

Off Topic:
Quote:
Originally Posted by BrantScripter
Посмотреть сообщение
LOL
What a stupid response..
Reply
#4

Take example of GM's in the forum, and choose your favorite database.
pawn Код:
enum pInfo
{
    pAdmin
}
new PlayerInfo[MAX_PLAYERS][pInfo];

// CMD to make someone an admin
CMD:makeadmin(playerid, params[])
{
     PlayerInfo[target][pAdmin] = input;
}

SavePlayer(playerid) // depends on what database you're having
{
    // save the variable here
    admin = PlayerInfo[playerid][pAdmin];
}

LoadPlayer(playerid) // depends on what database you're having
{
    // load the variable here
    PlayerInfo[playerid][pAdmin] = admin;
}
Reply
#5

I believe enum is for saving purposes.
Reply
#6

Use any saving system like Y_ini, Dini or SQL with enums for everything that will be saved
Reply
#7

https://sampforum.blast.hk/showthread.php?tid=356116

This helped me to start off at first time.
Reply
#8

Use enum for ingame saving purposes and then save it using Y_INI on disconnect, I wont explain everything only basics because there are a lot of tutorials on the web.
Reply
#9

Sorry for the late answer.
@StuartD, yeah, i use Y_INI.
@Lynet, will try the tutorial out.
@BrantScripter, yes so funny ok :]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)