Page 1 of 1

I LOVE LAN

Posted: Mon Nov 22, 2021 11:29 pm
by greenie
This was suggested by mtxd over four months ago, but no one ever created it. He finally bumped the topic and I wrote it, and he claims that it works, so I'm posting it here.

The target audience is admittedly small, as this plugin is used for people running a server that have a LAN. Basically, if the server is full and a LAN player is connecting, it boots the "worst" non-LAN player to make way for the LAN players.

This plugin does not work with any reserved slots plugin, but it's possible that I may recreate the reserved slots plugin inside of this plugin so that they can work together. As with the reserved slots plugin this uses a dummy slot, so increase your maxplayers by 1 if you have the ability to.

A user is determined to be on your LAN if the first x amount of ranges of his IP address match any of those listed in addons/amxmodx/data/lan.ini, which must be there for this plugin to run.

An example lan.ini would look like this:
10.0
217.147.10
217.147.20
get plugin