View Single Post
Author Message
navir
BANNED
Join Date: Jul 2009
Location: Europe, Romania
Old 10-09-2010 , 02:27   Alternative Adminslots + SUBNET restrict
Reply With Quote #1

I just made this plugin last night and thought it would be nice to share it with you guys.

What does it do?
- It manages the users getting in and out of the server depending on if the user either "has steam", "has admin" or "has slot". For example if the server you have is both protocols (steam and nonsteam) then you really have a problem with noob nonsteam users.

Case I:
- The server is full of NONSTEAM users and a steam user wants to connect. He can connect and a random nonsteam user will be kicked to leave an empty slot for anyone who wants to connect.

Case II:
- The server is full of STEAM users and an admin wants to connect. He can connect and a random STEAM user will be kicked to leave an empty slot for anyone who wants to connect.

Case III:
- The server is full of ADMINS, barely possible, in this case nobody can connect and if the max number of slots is reached nobody gets kicked because they all are admins.

Case IV:
- The server has some STEAM, some NONSTEAM and some ADMINS online.
- If a STEAM user connects some random NONSTEAM user gets kicked.
- If a NONSTEAM user connects he will get kicked cause he is NONSTEAM and there is no more free slots for him.
- If an ADMIN connects some random STEAM or NONSTEAM user gets kicked to empty the free slot.

Subnet Restrict:
- This function lets you manage who can play on your server depending on his IP address. For example you have 92.84.32.43 and you want to ban ALL 92.84.x.x. I've explained in the plugin source how to do that:
PHP Code:
#define FIRST    92,188
#define SECOND    80,81,82,83,84,85,86,87,27
// USAGE: FIRST.x.x.x / x.SECOND.x.x
// EXAMPLE: Ip class 92.84.x.x is restricted 
NOTE: I've made this plugin to help me on nonsteam noobs I'm dealing with on my CS 1.6 server. I know that this has only STEAM supported but I guess it can still be pretty usefull for anybody.

Please give me some feedback regarding if this plugin was or not usefull to you and thank you for your time reading this. Cheers!
Attached Files
File Type: sma Get Plugin or Get Source (adminslots.sma - 757 views - 3.7 KB)
navir is offline