Admin Level?? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Admin Level?? (
/showthread.php?tid=206456)
Admin Level?? NEW PROBBLEM -
park4bmx - 03.01.2011
SOLVED
Re: Admin Level?? -
DRIFT_HUNTER - 03.01.2011
Well there is many ways...But check these
https://sampwiki.blast.hk/wiki/Creating_...n_FilterScript
Respuesta: Admin Level?? -
ipsBruno - 04.01.2011
Hum,example
pawn Код:
static
AdmLevel[500][5], //5 = total levels
AdminName[sizeof AdmLevel][24] = { "Admin 1", "Admin 2", "Admin 3,"Admin 4"} //names level
;
#define SetAdminLevel(%0,%1) AdmLevel[%0] = %1;
#define GetAdminLevel(%0); AdmLevel[%0];
#define GetAdminLevelName(%0); AdminName[AdmLevel[%0]];
Re: Admin Level?? -
park4bmx - 04.01.2011
got a new problem!!!
Re: Admin Level?? -
park4bmx - 04.01.2011
anyone ??
Re: Admin Level?? -
Kwarde - 04.01.2011
What's the problem? You can't see all the levels? Do this:
if(PlayerInfo[playerid][PlayerAdmin]
>= 1)
instead of
==. So it will also shows when you're higher then 1.
And you used this:
pawn Код:
PlayerInfo[playerid][PlayerAdmin] = dini_Int(file,"PlayerAdmin");
PlayerInfo[playerid][PlayerAdmin] = 0;
Remove the last line: It sets the players admin level immidiatily to 0 again xD
Re: Admin Level?? -
MadeMan - 04.01.2011
pawn Код:
PlayerInfo[playerid][PlayerAdmin] = 0;
Remove this from loading.
Re: Admin Level?? -
park4bmx - 04.01.2011
ok thanks ill try
Re: Admin Level?? -
park4bmx - 04.01.2011
Ok
Thanks it worked
Re: Admin Level?? -
Kwarde - 04.01.2011
Yeah I already thought that

Whatever, you're welcome.