How to fit LAdmin4v2 into junkbuster?
#1

How to fit LAdmin4v2 into junkbuster? i got stuck at this:

Step 5)
You are using a default admin system with for example levels? Not only RCON?
You can link this admin system with JunkBuster.
JunkBuster can't recognize your adminsystem so you must add a function.

Function:

public IsPlayerAdminCall(playerid)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
return 1;
else
return 0;
}

IMPORTANT:
This function depends on YOUR admin system. The function above is ONLY FOR GODFATHER so you
have to customize this function.
If you do not add this function admin immunity will only work for RCON-admins!!!

PS:
JunkBuster is compatible with the default Godfather gamemode! (Tested)

Can someone make that one for me which fits with LAdmin4v2?
Reply
#2

Just change the PlayerInfo[playerid][pAdmin] in the public IsPlayerAdminCall for the LAdmin one and put it under the LAdmin filterscript and use the #include <JunkBusterFS> in the filterscript also.
Reply
#3

Lol does not work dude
pawn Код:
public IsPlayerAdminCall(playerid)

    {
        if(PlayerInfo[playerid][Level] >= 1)
        return 1;
        else
        return 0;
    }

-----------------------------------------------------------------------------------------------

warning 235: public function lacks forward declaration (symbol "IsPlayerAdminCall")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
can someone help plz?
Reply
#4

dudes help me i can't fix :/
Reply
#5

...
Reply
#6

Quote:
Originally Posted by XoX
Lol does not work dude
pawn Код:
public IsPlayerAdminCall(playerid)

    {
        if(PlayerInfo[playerid][Level] >= 1)
        return 1;
        else
        return 0;
    }

-----------------------------------------------------------------------------------------------

warning 235: public function lacks forward declaration (symbol "IsPlayerAdminCall")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
can someone help plz?
Код:
forward IsPlayerAdminCall(playerid);
public IsPlayerAdminCall(playerid)
{
if(PlayerInfo[playerid][Level] >= 1)
return 1;
else
return 0;
}
Reply
#7

Thank you very much!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)