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
//
// ============
//
// 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
//