PDA

View Full Version : DoD HPK aka 'High Ping Kicker' (v1.2)


Firestorm
07-09-2006, 09:51 AM
// DESCRIPTION:
// ============
//
// This Plugin is for Day of Defeat!
//
// Simple, but working HighPingKicker for DoD.
// Checking starts as soon as a player joins a team,
// so you don't get your screen spammed with kick messages
// of players that aren't in game yet. (DoD specific problem!)
// All can be set up by using cvars.
// Admins with a reserved slot aren't checked at all.

//
// USAGE:
// =====
//
// (all cvars for your amxx.cfg)
// -----------------------------
//
// dod_hpk_enabled <1/0> = enabled/disable DoD HPK by default
//
// dod_hpk_kickping <ping> = kick players with a ping that
// exceeds this value
//
// dod_hpk_pingchecks <checks> = how often a player should be checked
// positive for high ping before kick
//
// dod_hpk_checkdelay <delay> = how many seconds should be waited
// between the checks
//
// dod_hpk_stopchecking <checks> = how often a player should be checked
// negative in a row for high ping
// before disabling ping checks on him.
// (set to 0 to disable this feature)
//
// CHANGELOG:
// ==========
//
// - 24.10.2004 Version 0.9beta
// Initial Release
//
// - 26.10.2004 Version 0.95beta
// i forgot to remove the task to check
// the ping on a player when he leaves
// the server, should be fixed now
//
// - 07.11.2004 Version 0.96beta
// added feature:
// you can define how often a player
// has to have a lower ping in a row
// before DoD HPK stops to check him.
// if there is a high ping between the
// low ping checks, the LowPing counter
// is reset.
// that way cpu usage can be saved for
// players with a constant low ping.
//
// - 21.11.2004 Version 0.99beta
// fixed oversight that name of kicked
// highpinger wasn't displayed and added
// message to kicked highpinger.
//
// - 01.05.2004 Version 0.99beta2
// * optimized the code
// * removed hudmessages
// * added max allowed ping to
// public kick-message
//
// - 02.04.2006 Version 1.0
// added multilingual ability
// Thanks to cadav0r
//
// - 09.02.2006 Version 1.1
// fixed mistake in lang file (diamond-optic)
//
// - 02.07.2007 Version 1.2
// - using pcvar system now
// - renamed cvars from "dodhpk_*" to "dod_hpk_*"
// - renamed dictionary file to "dod_hpk.txt"
// - added global tracking cvar
//

nasa
09-02-2006, 03:18 PM
When i use this plugin it works fine except of one thing, when it kicks someone it stands "MD_NOTFOUND" Or something like that. "How i get like Your ping is too high kicked"

diamond-optic
09-02-2006, 09:04 PM
make sure the hpk.txt file is in the amxmodx/data/lang/ folder...

the ML_NOTFOUND means it cant find the language file/entry...

Box Cutter
09-02-2006, 10:47 PM
I have the hpk.txt in the appropriate place also and I get the same message. I just didnt really say anything about it because it didnt seem like a huge deal and it doesnt affect the functionality of the plugin.

diamond-optic
09-02-2006, 10:53 PM
ahh ok glancing over the code.. i think theres some mistakes in it.. when i finish up playing in a bit ill try and get around to fixing them..

diamond-optic
09-03-2006, 12:18 AM
ok my mistake.. lol.. it was a typo in the lang file..

all you REALLY need to do is re-download the lang file (or open your current one and change PKICKED to KICKED)
only change made to the sma was increasing the vers. number for the typo fix..


- 09.02.2006 Version 1.1
fixed mistake in lang file (diamond-optic)

FeuerSturm
07-02-2007, 05:37 PM
//
// - 02.07.2007 Version 1.2
// - using pcvar system now
// - renamed cvars from "dodhpk_*" to "dod_hpk_*"
// - renamed dictionary file to "dod_hpk.txt"
// - added global tracking cvar
//

As always, please report bugs with the new version immediately!

Enjoy!

jondoe
02-09-2008, 10:13 AM
dod_hpk_kickping

Can the above cvar be changed at any time during the map, Or does it have to be changed in the amxx.cfg

jondoe
02-11-2008, 08:09 PM
@Feuersturm

Can you add an option to have the plugin print out a Tsay when the HPK changes its setting. Like, "High ping kicker latency set to 150"

I'm uisng task_manager to try and set different kick latency's for different times of the day and or night. I run at 150 from midnight until noon. Then i run 250ms to midnight. That keeps the stat whores from other countrys off the server in the morning hours, from mging the bots down from behind. Heheh.

Oh and what about my question in the above post. Can the "dod_hpk_kickping" be set on the fly, because it doesn't seem to be able to do it. Thanks.

Joey
04-04-2009, 11:35 AM
I have just installed this plugin on my server but I don't seem to see any "checking for ping, next check in __ seconds " etc messages showing, I ran it with about 5-6 people but no-one had ping near the limit I set (150) so my question is will the plugin start functioning once it finds high pings?
The plugin loads correctly from what I can see and these are the czar values that I set:

dod_hpk_enabled 1
dod_hpk_kickping 150
dod_hpk_pingchecks 2
dod_hpk_checkdelay 60
dod_hpk_stopchecking 0

Am I going wrong somewhere? Does the plugin even show these messages on the server?
Thanks for any help :)

Joey
04-04-2009, 01:11 PM
Oh some good news, it appears it is working, wasn't in game but just seen this from hlsw :
Kick: "Player<19><STEAM_0:0:18407722><>" was kicked by "Console" (message "Your ping is too high!")
17:05:27 og L 04/04/2009 - 16:52:38: "Player<19><STEAM_0:0:18407722><Axis>" disconnected

I was just expecting it to be constantly showing "scanning for ping" messages whilst I was playing :)

Nice one thanks for the plugin!