Raised This Month: $ Target: $400
 0% 

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, 4822 views)
File Type: sma Get Plugin or Get Source (lame_connection_punisher.sma - 4569 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
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 02-03-2009 , 21:19   Re: Lame Connection Punisher
Reply With Quote #6

Quote:
Originally Posted by tuty View Post
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.
should go like this:

[ro]
JOIN_MSG = Jucatorii cu o conexiune necorespunzatoare vor primi kick/ban (ping-ul maxim admis: %d, limita admisa de pierderi: %d).
MSG_ALL_KICK = %s a primit kick din cauza conexiunii necorespunzatoare.
MSG_ALL_BAN = %s a fost banat %d minute din cauza conexiunii necorespunzatoare.
MSG_ALL_PBAN = %s a fost banat permanent din cauza conexiunii necorespunzatoare.
MSG_TARGET_LOSS = Conexiunea ta cu server-ul pierde prea multe pachete.
MSG_TARGET_FLUX = Pingul tau variaza peste limitele admise.

Quote:
Originally Posted by jediZEr0 View Post
mah tutty ce exprimare e asta:
conexiuni in prostie
Google translate maybe ?

NOTE: DO NOT USE WHAT U SEE BELOW LOL ! (this is Google translate version !)

[ro]
JOIN_MSG = Actori cu lame de conexiuni va fi pedepsit (ping flux limită:% d, pierderea limită:% d).
MSG_ALL_KICK =% sa fost lovit pentru lame de conectare.
MSG_ALL_BAN =% s a fost interzis% d de minute pentru a lame de conectare.
MSG_ALL_PBAN =% s a fost permanent interzis lui lame pentru conexiune.
MSG_TARGET_LOSS = Conexiunea dvs. este de a pierde prea multe pachete.
MSG_TARGET_FLUX = dvs. ping este prea instabil.

O.M.F.G. ! ! ! it's terrible ! ! ! R.O.F.L.

BTW: I think that lcp_immunity <"flag"> - Immunity flags should be more fitted to be defaulted as "b"

Last edited by Costin83; 02-03-2009 at 21:34.
Costin83 is offline
Send a message via Yahoo to Costin83
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-06-2009 , 12:41   Re: Lame Connection Punisher
Reply With Quote #7

Quote:
Originally Posted by bomnacama View Post
[bp]
JOIN_MSG = Jogadores com ma conexao serao castigados (limite de flutuacao de latencia: %d, limite de perda: %d).
MSG_ALL_KICK = %s foi expulso por ma conexao.
MSG_ALL_BAN = %s foi banido por %d minutos por ma conexao.
MSG_ALL_PBAN = %s foi banido permanentemente por ter ma conexao
MSG_TARGET_LOSS = Sua conexao esta perdendo muitos pacotes.
MSG_TARGET_FLUX = Sua latencia esta muito instavel.
PT-BR translation corrected.
__________________

Community / No support through PM

Last edited by danielkza; 01-06-2009 at 13:54. Reason: whatever
danielkza is offline
bomnacama
Senior Member
Join Date: Dec 2008
Location: Portugal
Old 01-06-2009 , 15:23   Re: Lame Connection Punisher
Reply With Quote #8

Quote:
Originally Posted by danielkza View Post
PT-BR translation corrected.
português, brasileiro...
__________________



Please FEED MY HAMSTERS by giving me +karma
bomnacama is offline
nunoabc
Senior Member
Join Date: Aug 2007
Location: Portugal, VN Gaia
Old 07-09-2009 , 05:30   Re: Lame Connection Punisher
Reply With Quote #9

Quote:
Originally Posted by bomnacama View Post
[bp]
JOIN_MSG = Jogadores com ma coneccao serao castigados (limite de variacao 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.
bomnacama, don't you think mine is better? I think the word "coneccao" sounds more brazillian rather than portuguese.
Code:
[pt]
JOIN_MSG = Jogadores com ma ligacao serao castigados (limite de fluxo de ping: %d, limite de perda: %d).
MSG_ALL_KICK = %s foi expulso por ter uma ma ligacao.
MSG_ALL_BAN = %s foi banido %d minutos por ter uma ma ligacao.
MSG_ALL_PBAN = %s foi banido permanentemente por ter uma ma ligacao.
MSG_TARGET_LOSS = A tua ligacao esta a perder muitos pacotes.
MSG_TARGET_FLUX = A tua latencia esta muito instavel.
I've posted the translation with [pt] because I've translated AMXX to PT-PT.
__________________

Last edited by nunoabc; 06-10-2010 at 12:22. Reason: I've must been high when I wrote 'fluxo' instead of 'variacao'... :x
nunoabc is offline
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 01-06-2009 , 08:49   Re: Lame Connection Punisher
Reply With Quote #10

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
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 21:46.


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