Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

DoD HPK aka 'High Ping Kicker' (v1.2)

by Firestorm · 2006-07-09 · 14 replies · 22337 views · 1149 downloads

Read the thread (15 posts)

From the first post

// DESCRIPTION:
rn// ============
rn//
rn// This Plugin is for Day of Defeat!
rn//
rn// Simple, but working HighPingKicker for DoD.
rn// Checking starts as soon as a player joins a team,
rn// so you don't get your screen spammed with kick messages
rn// of players that aren't in game yet. (DoD specific problem!)
rn// All can be set up by using cvars.
rn// Admins with a reserved slot aren't checked at all.
rn
rn
//rn//  USAGE:rn//  =====rn//rn//  (all cvars for your amxx.cfg)rn//  -----------------------------rn//rn//  dod_hpk_enabled <1/0>            = enabled/disable DoD HPK by defaultrn//rn//  dod_hpk_kickping           = kick players with a ping thatrn//                                     exceeds this valuern//rn//  dod_hpk_pingchecks       = how often a player should be checkedrn//                                     positive for high ping before kickrn//rn//  dod_hpk_checkdelay        = how many seconds should be waitedrn//                                     between the checksrn//rn//  dod_hpk_stopchecking     = how often a player should be checkedrn//                                     negative in a row for high pingrn//                                     before disabling ping checks on him.rn//                                     (set to 0 to disable this feature)rn//

rn
// CHANGELOG:rn// ==========rn//rn// - 24.10.2004 Version 0.9betarn//   Initial Releasern//rn// - 26.10.2004 Version 0.95betarn//   i forgot to remove the task to checkrn//   the ping on a player when he leavesrn//   the server, should be fixed nowrn//rn// - 07.11.2004 Version 0.96betarn//   added feature:rn//   you can define how often a playerrn//   has to have a lower ping in a rowrn//   before DoD HPK stops to check him.rn//   if there is a high ping between thern//   low ping checks, the LowPing counterrn//   is reset.rn//   that way cpu usage can be saved forrn//   players with a constant low ping.rn//rn// - 21.11.2004 Version 0.99betarn//   fixed oversight that name of kickedrn//   highpinger wasn't displayed and addedrn//   message to kicked highpinger.rn//rn// - 01.05.2004 Version 0.99beta2rn//   * optimized the codern//   * removed hudmessagesrn//   * added max allowed ping torn//     public kick-messagern//rn// - 02.04.2006 Version 1.0rn//   added multilingual abilityrn//      Thanks to cadav0rrn//rn// - 09.02.2006 Version 1.1rn//   fixed mistake in lang file (diamond-optic)rn//rn// - 02.07.2007 Version 1.2rn//   - using pcvar system nowrn//   - renamed cvars from "dodhpk_*" to "dod_hpk_*"rn//   - renamed dictionary file to "dod_hpk.txt"rn//   - added global tracking cvarrn//

Files

dod_hpk.sma Plugin Source 7 KB 591 dl Download Compile
dod_hpk.txt Config / Docs 1 KB 558 dl Download

Archived builds from the server loose

These compiled builds sat loose in the server's script folder rather than attached to a post. They are matched to this release by comparing their decompiled Pawn against the source published above, so treat the attribution as strong but not certain. Versions come from the register_plugin() call recovered from the bytecode.

dod_hpk.sma v1.0 6 KB Download Compile
dod_hpk_155.sma v1.0 6 KB Download Compile

The thread

All 15 posts from 11 people on DoD HPK aka 'High Ping Kicker' (v1.2), kept as they were written.

F Firestorm
started this thread
Posts: 31
Threads: 30
Joined: Jul 2006
07-09-2006, 09:51 AM #1

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

//rn//  USAGE:rn//  =====rn//rn//  (all cvars for your amxx.cfg)rn//  -----------------------------rn//rn//  dod_hpk_enabled <1/0>            = enabled/disable DoD HPK by defaultrn//rn//  dod_hpk_kickping <ping>          = kick players with a ping thatrn//                                     exceeds this valuern//rn//  dod_hpk_pingchecks <checks>      = how often a player should be checkedrn//                                     positive for high ping before kickrn//rn//  dod_hpk_checkdelay <delay>       = how many seconds should be waitedrn//                                     between the checksrn//rn//  dod_hpk_stopchecking <checks>    = how often a player should be checkedrn//                                     negative in a row for high pingrn//                                     before disabling ping checks on him.rn//                                     (set to 0 to disable this feature)rn//
rn
// CHANGELOG:rn// ==========rn//rn// - 24.10.2004 Version 0.9betarn//   Initial Releasern//rn// - 26.10.2004 Version 0.95betarn//   i forgot to remove the task to checkrn//   the ping on a player when he leavesrn//   the server, should be fixed nowrn//rn// - 07.11.2004 Version 0.96betarn//   added feature:rn//   you can define how often a playerrn//   has to have a lower ping in a rowrn//   before DoD HPK stops to check him.rn//   if there is a high ping between thern//   low ping checks, the LowPing counterrn//   is reset.rn//   that way cpu usage can be saved forrn//   players with a constant low ping.rn//rn// - 21.11.2004 Version 0.99betarn//   fixed oversight that name of kickedrn//   highpinger wasn't displayed and addedrn//   message to kicked highpinger.rn//rn// - 01.05.2004 Version 0.99beta2rn//   * optimized the codern//   * removed hudmessagesrn//   * added max allowed ping torn//     public kick-messagern//rn// - 02.04.2006 Version 1.0rn//   added multilingual abilityrn//      Thanks to cadav0rrn//rn// - 09.02.2006 Version 1.1rn//   fixed mistake in lang file (diamond-optic)rn//rn// - 02.07.2007 Version 1.2rn//   - using pcvar system nowrn//   - renamed cvars from "dodhpk_*" to "dod_hpk_*"rn//   - renamed dictionary file to "dod_hpk.txt"rn//   - added global tracking cvarrn//
nasa
posted here
Posts: 35
Threads: 5
Joined: Sep 2006
09-02-2006, 03:18 PM #2

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
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
09-02-2006, 09:04 PM #3

make sure the hpk.txt file is in the amxmodx/data/lang/ folder...nnthe ML_NOTFOUND means it cant find the language file/entry...

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
09-02-2006, 10:47 PM #4

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
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
09-02-2006, 10:53 PM #5

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
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
09-03-2006, 12:18 AM #6

ok my mistake.. lol.. it was a typo in the lang file..nnall you REALLY need to do is re-download the lang file (or open your current one and change PKICKED to KICKED)nonly change made to the sma was increasing the vers. number for the typo fix..nn

n - 09.02.2006 Version 1.1n fixed mistake in lang file (diamond-optic)n
FeuerSturm
posted here
Posts: 166
Threads: 15
Joined: Jun 2007
07-02-2007, 05:37 PM #7
//rn// - 02.07.2007 Version 1.2rn//   - using pcvar system nowrn//   - renamed cvars from "dodhpk_*" to "dod_hpk_*"rn//   - renamed dictionary file to "dod_hpk.txt"rn//   - added global tracking cvarrn//
rnrnAs always, please report bugs with the new version immediately!rnrnEnjoy!

J jondoe
posted here
Posts: 129
Threads: 6
Joined: Aug 2005
02-09-2008, 11:13 AM #8

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

J jondoe
posted here
Posts: 129
Threads: 6
Joined: Aug 2005
02-11-2008, 09:09 PM #9

@FeuersturmrnrnCan 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"rnrnI'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.rnrnOh 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.

J Joey
posted here
Posts: 7
Threads: 0
Joined: Apr 2009
04-04-2009, 11:35 AM #10

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?nThe plugin loads correctly from what I can see and these are the czar values that I set:nndod_hpk_enabled 1ndod_hpk_kickping 150ndod_hpk_pingchecks 2ndod_hpk_checkdelay 60ndod_hpk_stopchecking 0nnAm I going wrong somewhere? Does the plugin even show these messages on the server?nThanks for any help :)

J Joey
posted here
Posts: 7
Threads: 0
Joined: Apr 2009
04-04-2009, 01:11 PM #11

Oh some good news, it appears it is working, wasn't in game but just seen this from hlsw : nKick: "Player<19><STEAM_0:0:18407722><>" was kicked by "Console" (message "Your ping is too high!")n17:05:27 og L 04/04/2009 - 16:52:38: "Player<19><STEAM_0:0:18407722><Axis>" disconnectednnI was just expecting it to be constantly showing "scanning for ping" messages whilst I was playing :)nnNice one thanks for the plugin!

T thethe
posted here
Posts: 1
Threads: 0
Joined: Oct 2010
10-03-2010, 03:58 PM #12

where i need put this:rndod_hpk_enabled 1rndod_hpk_kickping 150rndod_hpk_pingchecks 2rndod_hpk_checkdelay 60rndod_hpk_stopchecking 0rnrnbecause i dont see message in the game to sat player will kicked ...rnhelp me !

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
10-03-2010, 07:06 PM #13

amxx.cfg (found in addons/amxmodx/configs/) or server.cfg (root folder). Need a map restart to allow the changes to be in effect.

B bryanebe
posted here
Posts: 1
Threads: 0
Joined: Jun 2012
06-14-2012, 12:35 AM #14
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..
rnrnwhen it kicks someone it stands "MD_NOTFOUND" Or something like that. "How i get like Your ping is too high kicked"

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
06-14-2012, 09:22 AM #15
make sure the hpk.txt file is in the amxmodx/data/lang/ folder...rnrnthe ML_NOTFOUND means it cant find the language file/entry...
rnrnTaadaaaa =)

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC