07-08-2006, 10:38 AM
// DESCRIPTION:
// ============
//
// This is a real simple, but powerful AFK/Spectator Kicker!
// It's absolutely independent from the players position on
// the map as the counter until he's kicked starts to run down
// as soon as he joins the server and is only reset and starts
// from the beginning in the following cases:
// - player damages/kills another player
// - player gets score for taking a flag
// - player types in global-/teamchat
// - player throws a grenade
// - player changes team / switches class
// The SpectatorKicker is completely independent from the AFKKicker,
// as the action of the AFKKicker stops as soon as a player joins
// Spectators and the SpecktatorKicker takes over. Same applies
// vice versa, so you can safely only use one (or both for sure) parts
// of the plugin.
//
// * admins with a reserved slot who are afk aren't kicked
// * spectating admins aren't kicked
// * fakeclients, bots, hltvs aren't kicked either
// ============
//
// This is a real simple, but powerful AFK/Spectator Kicker!
// It's absolutely independent from the players position on
// the map as the counter until he's kicked starts to run down
// as soon as he joins the server and is only reset and starts
// from the beginning in the following cases:
// - player damages/kills another player
// - player gets score for taking a flag
// - player types in global-/teamchat
// - player throws a grenade
// - player changes team / switches class
// The SpectatorKicker is completely independent from the AFKKicker,
// as the action of the AFKKicker stops as soon as a player joins
// Spectators and the SpecktatorKicker takes over. Same applies
// vice versa, so you can safely only use one (or both for sure) parts
// of the plugin.
//
// * admins with a reserved slot who are afk aren't kicked
// * spectating admins aren't kicked
// * fakeclients, bots, hltvs aren't kicked either
Quote:// USAGE:
// =====
//
// cvars:
// ------
//
// dod_afkmanager_afkkick <1/0> = enable/disable AFK Manager (kicker)
//
// dod_afkmanager_afkkicktime <time> = sets time in seconds a player can be AFK
// before he's kicked off the server.
//
// dod_afkmanager_speckick <1/0> = enable/disable SpectatorKicker
//
// dod_afkmanager_speckicktime <time> = sets time in seconds a player can be a
// spectator before he's kicked off the server
//
// dod_afkmanager_minplayers <amount> = minimum number of players that have to be on the
// server to get rid of afks and spectators
Quote:// CHANGELOG:
// ==========
//
// - 13.07.2005 Version 0.5beta
// Initial Release
//
// - 17.07.2005 Version 0.6beta
// bugfixes:
// - fixed errors that resulted from missing
// checks whether the player was already connected
// or still connecting.
//
// - 12.08.2005 Version 0.7beta
// tweaks:
// - added afktimer reset for shooting, switching weapons
// and bringing up the scope (snipers)
// bugfix:
// - resetting afktimer for capping flags is working now
//
// - 26.06.2007 Version 0.8
// - removed unneeded code
// - removed unreliable afk-timer reset-functions
// - added reset for throwing grenades
// - added reset for changing class
// - updated "team change function" to use dod_client_changeteam
// forward
// - changed to pcvar system
// - optimized the code
//
// - 27.06.2007 Version 0.85
// - replaced only catching Global-/TeamChat of a player
// with catching all of his commands.
// - commands like "sprone, weapon_* , say, say_team" are cought
// now
//
// - 02.07.2007 Version 0.9
// - added global tracking cvar
//
// - 20.07.2007 Version 1.0
// - replaced "client_death" with hooking the
// "DeathMsg"-Event for better reliability
// - added "German" language definitions to the
// language file
//

