Description:
This plugin can be useful for admins who have their servers working both in the internet and in some localnetwork, and they need to give local players a priority to join these servers without adding hundreds of steamids to reserved slots
And there's more, admins may allow players to register reserved slots themselves... why would any admin want to do this? well, he may be lazy and he doesn't want to do it himself
This plugin works by setting Admin_Reservation flag to clients who have:
- IP from a specific network
- SteamID reserved
so it should work OK with any SM reserved slots manager
Requirements:
- SourceMod v1837 or higher
Cvars:- sm_ips_allowselfregister - Allows people to use "regme" in chat to get a reserve slot for their SteamID
- sm_ips_allowlisting - Allows people to use "ips" in chat to see the list of players with their networks shown
Installation:
place ips.smx into your sourcemod/plugins/ directory and internet.txt with lan.txt into /cstrike/ directory
Configuration:
you have to edit internet.txt and lan.txt to define your own networks
lan.txt is used to check clients who have 10, 192 or 172 in the first byte of their IP address and internet.txt for the rest
in my example it looks like this:
PHP Code:
"CrossNet*1"
{
"ip1" "81.88.112.1"
"ip2" "81.88.127.254"
}
ip1 and ip2 specify network range
because ISP may have several network ranges, but they must have the same name, we can specify them by "CrossNet*1", "CrossNet*2" ... "CrossNet*N", you can see that in my example
the last entry in this list must be 0.0.0.0 - 255.255.255.255, which will define default name (they are LAN and Internet)
Changelog:
Version 1.2
- now works without altering reserved slots plugins
Version 1.1
- made some optimizations and cached handles
- new version requires modified reserved slots plugin
TODO:
- make a single config for network ranges to make things easier... at first this plugin was using Event Scripts and I had to split networks list into 2 pieces to make it run faster, but there's no such need in SourceMod