Raised This Month: $32 Target: $400
 8% 

Lame Connection Punisher 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        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 - 4541 views - 8.5 KB)
__________________

Last edited by MeRcyLeZZ; 06-06-2011 at 00:56.
MeRcyLeZZ is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 01-05-2009 , 16:06   Re: Lame Connection Punisher
Reply With Quote #2

Nice! ;)
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
bomnacama
Senior Member
Join Date: Dec 2008
Location: Portugal
Old 01-05-2009 , 17:13   Re: Lame Connection Punisher
Reply With Quote #3

[bp]
JOIN_MSG = Jogadores com ma coneccao serao castigados (limite de fluxo de ping: %d, limite de perda: %d).
MSG_ALL_KICK = %s foi kicado por ter ma coneccao.
MSG_ALL_BAN = %s foi banido %d minutos por ter uma ma coneccao.
MSG_ALL_PBAN = %s foi banido permanentemente por ter uma ma coneccao
MSG_TARGET_LOSS = a tua coneccao esta a perder muitos pacotes.
MSG_TARGET_FLUX = A tua latencia esta muito instavel.
__________________



Please FEED MY HAMSTERS by giving me +karma
bomnacama is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-06-2009 , 03:06   Re: Lame Connection Punisher
Reply With Quote #4

Plugin sounds nice, Finnish anyway...
Code:
[fin]
JOIN_MSG = Pelaajia joilla on huono yhteys tullaan rangaistamaan (pingi sulateraja: %d, poistumaraja: %d).
MSG_ALL_KICK = %s potkittiin ulos huonon yhteyden takia.
MSG_ALL_BAN = %s sai porttikiellon %d minuuttia pahan yhteydensa takia.
MSG_ALL_PBAN = %s sai ikuisen porttikiellon huonon yhteyden takia.
MSG_TARGET_LOSS = Yhteytesi menettaa liian monia paketteja.
MSG_TARGET_FLUX = Pingisi on epavakaa.
SnoW is offline
Send a message via MSN to SnoW
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 01-06-2009 , 08:02   Re: Lame Connection Punisher
Reply With Quote #5

What can i say........... You are the man
Nice .Here is a RO translation :-/

Code:
[ro]
JOIN_MSG = Jucatorii cu conexiuni in prostie vor fi pedepsiti (limita de ping %d, limita de pierdere: %d).
MSG_ALL_KICK = %s a primit kick din cauza conexiunilor in prostie.
MSG_ALL_BAN = %s a fost banat %d minute din cauza conexiunilor in prostie.
MSG_ALL_PBAN = %s a fost banat permanent din cauza de conexiuni in prostie.
MSG_TARGET_LOSS = Conexiunea ta pierde foarte multe pachete.
MSG_TARGET_FLUX = Lagul tau este prea instabil.
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 01-06-2009 , 08:49   Re: Lame Connection Punisher
Reply With Quote #6

Nice. Testing.
Here's lithuanian translation:

Code:
JOIN_MSG = Zaidejai turintys prasta interneto rysi bus baudziami (ping limitas: %d, loss limitas: %d).
MSG_ALL_KICK = %s buvo isspirtas del jo prasto interneto rysio.
MSG_ALL_BAN = %s buvo uzbanintas %d minutems(-iu)(-ei) del jo prasto interneto rysio.
MSG_ALL_PBAN = %s buvo uzbanintas visam laikui del jo prasto interneto rysio.
MSG_TARGET_LOSS = Jusu interneto rysis praranda per daug paketu.
MSG_TARGET_FLUX = Jusu ping'as per daug nestabilus.

Last edited by BeasT; 01-06-2009 at 08:52.
BeasT is offline
Send a message via Skype™ to BeasT
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-06-2009 , 09:52   Re: Lame Connection Punisher
Reply With Quote #7

Quote:
Originally Posted by Russian translate
[ru]
JOIN_MSG = Igroki s plohim internetom budut nakazany (Maksimal'nyj ping: %d, limit poter': %d).
MSG_ALL_KICK = %s byl kiknut za ego plohoj internet.
MSG_ALL_BAN = %s byl zabanen na %d minut za ego plohoj internet.
MSG_ALL_PBAN = %s byl zabanen navsegda za ego plohoj internet.
MSG_TARGET_LOSS = Vashe soedinenie terjaet ochen' mnogo paketov
MSG_TARGET_FLUX = Vash ping neravnomeren
__________________
xPaw is offline
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 01-06-2009 , 11:08   Re: Lame Connection Punisher
Reply With Quote #8

Thanks for the translations everyone.

Also, let me know if the default CVAR values are working out alright. I think usual ping fluctuations don't go beyond 50 ms for DSL players, so you could probably lower the flux limit a bit for more accuracy, if you feel like it. So long as the server doesn't get lag spikes, it should be fine.
__________________
MeRcyLeZZ is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 01-06-2009 , 11:29   Re: Lame Connection Punisher
Reply With Quote #9

[de]
JOIN_MSG = Spieler mit einer schlechten Verbindung werden gekickt (Pingschwankungs-Limit: %d, Loss-Limit: %d).
MSG_ALL_KICK = %s wurde wegen seiner schlechten Verbindung gekickt.
MSG_ALL_BAN = %s wurde %d Minuten wegen seiner schlechten Verbindung gebannt.
MSG_ALL_PBAN = %s wurde wegen seiner schlechten Verbindung permanent gebannt.
MSG_TARGET_LOSS = Ihre Verbindung verliert zu viele Packete.
MSG_TARGET_FLUX = Ihr Ping schwankt zu stark.

nice idea
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 01-06-2009 , 11:47   Re: Lame Connection Punisher
Reply With Quote #10

Is it safe to lower the loss value to 5? Because I don't get it higher than 1 with a good connection.
BeasT is offline
Send a message via Skype™ to BeasT
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode