DoD Plugins Archive
This site is an archive — everything is readable and downloadable, nothing can be posted.
Hello There, Guest!

Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DoD HPK aka 'High Ping Kicker' (v1.2)
#1
// 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.

Code:
// // 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) //

Code:
// 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 //


Attached Files
.sma   dod_hpk.sma (Size: 6.62 KB / Downloads: 591)
.txt   dod_hpk.txt (Size: 1.25 KB / Downloads: 558)
#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"
#3
make sure the hpk.txt file is in the amxmodx/data/lang/ folder...

the ML_NOTFOUND means it cant find the language file/entry...
#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.
#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..
#6
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..

Quote: - 09.02.2006 Version 1.1
fixed mistake in lang file (diamond-optic)
#7
Code:
// // - 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!
#8
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
#9
@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.
#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?
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 Smile


Forum Jump:


Users browsing this thread: 1 Guest(s)
DoD Plugins Archive · Repository · Return to Top · Current time: 08-28-2026, 04:01 AM Powered By MyBB, © 2002-2026 MyBB Group.