Admin Level??
#1

SOLVED
Reply
#2

Well there is many ways...But check these
https://sampwiki.blast.hk/wiki/Creating_...n_FilterScript
Reply
#3

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]];
Reply
#4

got a new problem!!!
Reply
#5

anyone ??
Reply
#6

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
Reply
#7

pawn Код:
PlayerInfo[playerid][PlayerAdmin] = 0;
Remove this from loading.
Reply
#8

ok thanks ill try
Reply
#9

Ok Thanks it worked
Reply
#10

Yeah I already thought that
Whatever, you're welcome.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)