JunkBuster help?
#1

So I'm using JunkBuster for my Anti cheat and I'm also using Lux Admin for my admin system. I have already added "#include <JunkBuster>" at the top of the Lux Admin system and I also added "#include <ladmin" at the top of the JunkBuster filterscript.

So I join the game as an admin and when I spawn a car for myself with /car using the Lux Admin system, it kicks/bans me for spawning a vehicle. Any help of what I should do? Thanks
Reply
#2

Please help? +REP
Reply
#3

Anyone please help?
Reply
#4

I got it.
Reply
#5

Have you read the readme that came with junkbuster? It has a few lines you have to put into the admin system so you dont get banned.....

Quote:

You are using a custom 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 (This is only an EXAMPLE!):

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

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

TEMPLATE (copy this function into your admin script/gamemode and fill in the missing part [this was just for the bloody noobs]):

public IsPlayerAdminCall(playerid)
{
if(/* Missing part: Is playerid admin? */)
return 1; // If yes, return 1.
else
return 0; // If no, return 0.
}

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

PPS:
JunkBuster is actually compatible with nearly every script! (It's designed to be)

I have junkbuster 11 and i had it working with Lux Admin before. It just takes a bit of tinkering to get it to work properly. And you also have to keep the include files to Lux Admin too.
Reply
#6

Okay so do you know what I should add extra so it won't ban admins or innocent players? Regards,
Reply
#7

Pretty sure i just added this...
pawn Код:
public IsPlayerAdminCall(playerid)
{
    if(AccInfo[playerid][Level] < 1)
        return 1;
    else
        return 0;
}
Put it anywhere not inside a public cause it is a new public.
And i made one for each level so...
pawn Код:
if(AccInfo[playerid][Level] < 1)
if(AccInfo[playerid][Level] < 2)
if(AccInfo[playerid][Level] < 3)
if(AccInfo[playerid][Level] < 4)
if(AccInfo[playerid][Level] < 5)
So you will have 5 new publics to add.
Pretty sure i did that, not totaly sure tho, its been a while just give it a try.
Reply
#8

Okay thanks Nick so which script do I put this code into? The game mode, Lux Admin filterscript, or Junk Buster filterscript?
Reply
#9

Lux Admin anywhere under a_samp and not in a public
Reply
#10

Try the latest version of JunkBuster.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)