SA-MP Forums Archive
Help! Admin Immunity - 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: Help! Admin Immunity (/showthread.php?tid=162989)



Help! Admin Immunity - soulas85 - 25.07.2010

Hi, I have LuxAdmin v1.5, then i connect to server it kick's me becouse of High Ping, what i need to do that it couldn't kick me? It have to kick player's except Admin's or VIP's!


Re: Help! Admin Immunity - Mike Garber - 25.07.2010

if(IsPlayerWhatever){
return 0;
}




Re: Help! Admin Immunity - soulas85 - 25.07.2010

where should i add it and to what should i change Whatever?


Re: Help! Admin Immunity - Carlton - 25.07.2010

I decided to take a look into the LuXAdministration system. This should work. Add this to the PingKick timer:

pawn Код:
if(IsPlayerLuxAdminLevel(playerid, 1) || IsPlayerVipMember(playerid))  return 1;
It should look like this:

pawn Код:
public PingKick()
{
        if(ServerInfo[MaxPing] != 0)
        {
            PingPos++; if(PingPos > PING_MAX_EXCEEDS) PingPos = 0;
            for(new i=0; i<MAX_PLAYERS; i++)
            {
                         if(IsPlayerLuxAdminLevel(playerid, 1) || IsPlayerVipMember(playerid))  continue;
                          // The rest of the LuxAdmin code.
            }
        }
}