pAdmin/AdminLevel etc. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: pAdmin/AdminLevel etc. (
/showthread.php?tid=475293)
pAdmin/AdminLevel etc. -
Kyance - 12.11.2013
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
Re: pAdmin/AdminLevel etc. -
BrantScripter - 12.11.2013
LOL
Re: pAdmin/AdminLevel etc. -
StuartD - 12.11.2013
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..
Re: pAdmin/AdminLevel etc. -
Loot - 12.11.2013
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;
}
Re: pAdmin/AdminLevel etc. -
Uberanwar - 12.11.2013
I believe enum is for saving purposes.
Re: pAdmin/AdminLevel etc. -
dominik523 - 12.11.2013
Use any saving system like Y_ini, Dini or SQL with enums for everything that will be saved
Re: pAdmin/AdminLevel etc. -
Lynet - 12.11.2013
https://sampforum.blast.hk/showthread.php?tid=356116
This helped me to start off at first time.
Re: pAdmin/AdminLevel etc. -
Beckett - 12.11.2013
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.
Re: pAdmin/AdminLevel etc. -
Kyance - 12.11.2013
Sorry for the late answer.
@StuartD, yeah, i use Y_INI.
@Lynet, will try the tutorial out.
@BrantScripter, yes so funny ok :]