View Single Post
Plugin Info:     Modification:          Category:          Approver:   Hawk552 (427)
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 01-05-2009 , 16:05   Lame Connection Punisher 1.2
Reply With Quote #1

Lame Connection Punisher

Description

This plugin improves your server's gameplay experience by automatically rejecting clients with "bad" conections, so that you'll never have to deal with players skipping around the map or being hard to hit anymore.

It can also detect clients running any background applications that may be affecting their connection, such as P2P programs using up too many bandwidth.

How Does It Work

It checks for player's ping fluctuations and packet loss rates, since these seem to be the most trustable factors in determining if there are any issues, in my experience.

What Makes It Different

Other solutions, such as Hing Ping Kickers, usually can't tell apart players with good or bad connections accurately. They may not detect a bad connection if the player's ping is too low, and likewise, they may end up kicking a player who's ping exceeds the limit but has a nice connection nonetheless, thus making you loose potential players.

Installation
  • Extract .amxx file to your plugins folder, and add its name to plugins.ini
  • Extract .txt file to the "data/lang" folder on your server
CVARS

There are 2 main cvars to control the plugin's behavior (tolerance), though the default values are recommended.

Please note that small ping fluctuations and packet loss occur even on the best connections, so DO NOT set these too low, unless you are on for some nasty results!
  • lcp_flux_limit <50> - Ping fluctuation limit (in ms.)
  • lcp_loss_limit <5> - Loss limit (% of packets)
Additionally, you can specify whether the plugin should kick or ban these players by changing the following settings.
  • lcp_punishment <0/1/2> - 0 = Kick / 1 = Ban by SteamID / 2 = Ban by IP
  • lcp_ban_time <5> - Ban time in minutes (use 0 to permanently ban)
Lastly, players with the immunity flags will not be checked at all.
  • lcp_immunity <"a"> - Immunity flags
Changelog

Code:
- Version: 1.2 (Jun 06, 2011)
* Fixed plugin so that it works on all HL mods

- Version: 1.1a (Feb 24, 2009)
* Fixed IP ban code retrieving unneeded port number

- Version: 1.1 (Feb 08, 2009)
* Code optimized

- Version: 1.0 (Jan 05, 2009)
* First public release
* Added ban support
* Added immunity feature
Attached Files
File Type: txt lame_connection_punisher.txt (7.7 KB, 4810 views)
File Type: sma Get Plugin or Get Source (lame_connection_punisher.sma - 4543 views - 8.5 KB)
__________________

Last edited by MeRcyLeZZ; 06-06-2011 at 00:56.
MeRcyLeZZ is offline