Anti Speedhack v1.7
This script will detect and ban speedhackers.

You can adjust the sensetivity values by the constants; 
#define MAXOFFENCE and #define SECDIST and FFF

If you want to try it on, you might want to use GHW_Chronic's Legal Speed Hack 

The works:
The plugin checks your position every second and measures the distance in units to your position
one second ago. This allows the plugin to check how fast you have been movin the latest seconds.
If a player have jumped 2000 units over a perod of half a second then there is a good chance we
have a speedhacker.

CVARS
amx_sh_sens | def. 3 - Sensetivity for autokick, should be around 2-3 i think
amx_sh_autokick | 1=on, 0=off | def. 1 - Auto-kick speedhackers if no admin is online?

Requires: 
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>

Credits: 
to EKS for giving me ideas from the spinhack detector script - also "borrowed" some code  
Spin Hack Detector can be found here 
* All ppl on the forum here from where i found various code snippets and information 
* Zenith77 for annoying me to revise pluggin to v1.1 
* ... and also a little bit of creds to me 

Caution! 
If this pluggin runs amok, kills your dog and steals your girlfriend away from you, dont ask me why and dont blaim me. Use this at own risk. Known side effects may be that your server may randomly ban people without warning IF you mess upp with the sens values. If you experience these negative effects, try increasing these values - NOT decreasing! 

Todo
 * Improve when recived feedback
 * Clean up code

Version History 
 1.7   -  Fixed bug : Silly me. Fixed a bug that dissabled the autokicker

 1.6 -    Improved  : Now this plugin will logg speedhackers so admins can se what have been going on.
                      Also, added funtion to automaticly kick speedhackers if no admin is online.
		      Added cvars amx_sh_sens and amx_sh_autokick
		      
 1.5 -    Fixed bug : I wont say that i have got this running fully yet, since i have constantly been
                      proven otherwise when saying so. I have taken a new approach on the problems though
                      and it seams the problems were caused when anyone gets banned it does not reset.

          Improved  : I have also removed the autoban system since admins prefferably would like some
		      controll over who to be banned. This script may now work with teleports and even speed
		      since any admin may choose to ignore the speedhack alerts.
		      
 1.4 -    Fixed bug : Finaly found the root of the problems (i think). Now buyzones (commonly at spawnpoints)
                      are neutral freezones to clear at spawn. It seamed to work on D2, have not checket
		      every single map though. Would be glad over some feedback :) - Removed FFF

 1.3 -    Fixed bug : random important bugs fixed, more stable now and does not take forever to ban a violator 

 1.2 -    Fixed bug : server does not ban as soon as is suspects speedhacker 

 1.1 -    Does not run on kz and surf type maps 
          Lowered the sens values after some tests  

	  
If you find any bugs, please let me know:
mathias.frendin@telia.com : mail/msn
-DarkSnow