AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Lame Connection Punisher 1.2 (https://forums.alliedmods.net/showthread.php?t=83192)

MeRcyLeZZ 01-05-2009 16:05

Lame Connection Punisher 1.2
 
2 Attachment(s)
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


Fry! 01-05-2009 16:06

Re: Lame Connection Punisher
 
Nice! ;)

bomnacama 01-05-2009 17:13

Re: Lame Connection Punisher
 
[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.

SnoW 01-06-2009 03:06

Re: Lame Connection Punisher
 
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.


tuty 01-06-2009 08:02

Re: Lame Connection Punisher
 
What can i say........... You are the man :mrgreen::mrgreen:
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.


BeasT 01-06-2009 08:49

Re: Lame Connection Punisher
 
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.


xPaw 01-06-2009 09:52

Re: Lame Connection Punisher
 
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


MeRcyLeZZ 01-06-2009 11:08

Re: Lame Connection Punisher
 
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.

SchlumPF* 01-06-2009 11:29

Re: Lame Connection Punisher
 
[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

BeasT 01-06-2009 11:47

Re: Lame Connection Punisher
 
Is it safe to lower the loss value to 5? Because I don't get it higher than 1 with a good connection.


All times are GMT -4. The time now is 22:20.

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