SA-MP Forums Archive
How to fit LAdmin4v2 into junkbuster? - 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: How to fit LAdmin4v2 into junkbuster? (/showthread.php?tid=145979)



How to fit LAdmin4v2 into junkbuster? - HireMe - 05.05.2010

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?


Re: How to fit LAdmin4v2 into junkbuster? - RoamPT - 05.05.2010

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.


Re: How to fit LAdmin4v2 into junkbuster? - XoX - 14.06.2010

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?


Re: How to fit LAdmin4v2 into junkbuster? - XoX - 15.06.2010

dudes help me i can't fix :/


Re: How to fit LAdmin4v2 into junkbuster? - NewTorran - 15.06.2010

...


Re: How to fit LAdmin4v2 into junkbuster? - DJDhan - 15.06.2010

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;
}



Re: How to fit LAdmin4v2 into junkbuster? - XoX - 16.06.2010

Thank you very much!