Author: KnightHawk
Version: 1.10.3  (tested on AM code 2.5.9 and higher)
License: Free, of course if you my code as the base for another plugin, some credit would be nice.
Platform: Tested under win32 with HL-TFC\HL-CS (1008c), other should work.
contact: knighthawktfc@hotmail.com


Installation
-----------------------------------------------------------
Compile the .sma
Copy the .amx file to your mod\addons\adminmod\scripts folder
Copy the .wav file to mod\sounds\knight folder
add addons/adminmod/scripts/plugin_knight_slothound.amx to your plugin.ini file.
Edit your vault.ini file and add the following keys

MaxDead 5  (Amount of times a person can be caught dead in a row before kicked.)
MaxInactive 5 (amount of times a persons XYZ coordinates can be found to be the same consecutively in a row before kicked.)

If you want to use the kick sound, then edit your maps .res files and add
sound/knight/door.wav


Commands
----------------------------------------------------------
admin_slotinactive <integer>  between 3 and 25 (re-sets the MaxInactive count to this value)
admin_slotdead <integer>  between 3 and 25 (re-sets the MaxDead count to this value)
admin_slottest <UserName>   Prints the current counts for that user and there location checksum


Notes
------------------

The user is warned before the last 2 minutes before being kicked, they are informed to
either spawn or move to aviod being booted. 

When booted all clients are informed that <playername> as been auto kick due to inactivity.
It will then play the door.wav sound on all systems, provided you have it downloaded to the clients.
The sound file is optional, if you dont want to use it, dont force it to download.


When the script goes to kick someone for being dead too long consecutively,
it must also find that the person has also been in the same location
for at least 2 minutes.  This was designed to make sure the person is really inactive
and not just dead such as in long rounds in CS.



