Raised This Month: $12 Target: $400
 3% 

Speed Hack Detector v0.1.1a


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 09-15-2009 , 21:30   Speed Hack Detector v0.1.1a
Reply With Quote #1

.: Description :.
This is a remake of "Anti Speedhack" by DarkSnow. Yeah, I know it's another redundant plugin, but look at the changes.

What's different on this plugin?
  • I'm checking the player's origins in a 0.1 task, to make it more exact.
  • I removed fall and jump support. What does this mean? Simple, when you are falling or jumping the plugin doesn't check your origins as well.
  • You can test the plugin without real bans (make sure you are running an unsecure server):
    PHP Code:
    // Uncomment this line if you are testing the plugin (no real ban purpose).
    //#define PLUGIN_TEST 
  • I know detecting speed hacks is very easy, but I did the plugin thinking on an admin-empty server.
  • Added customizable cvars.
  • And more...

Unsupported stuff:
  • This plugin wil NOT work on KZ and Surf maps. It may work in KZ, since I added more checks, but I'm not sure about that. Anyways, what's the point of using speed hacks on these mods?

    If you own a Zombie Mod server please don't try add this plugin to your server. The reply should be obvious.
    If you don't get it, just think about zombie's speed.

    Also there is no way to check if the user ran the distance or just used a checkpoint, so don't use commands like these.

.: Requirements :.
  • AMX Mod X version 1.8.1 or higher.
  • Engine module.

.: CVARs :.
shd_enabled "1" // Enables/disables the plugin.
shd_max_distance "260" // Distance between the older and newest origins walked by the user. As I said previously, checked in a 0.1 task.
shd_max_warnings "3" // Number of warnings before the plugin will ban the player.
shd_punish_type "1" // SHD punish type. NOTE: All of these bans will be permanent.
  • 1: Normal ban with AMX BANS support.
  • 2: Same as previous, but without extern plugins support.
  • 3: Ban by IP.

.: Download :.
NOTE: Do not use before I get it working properly!
Attached Files
File Type: sma Get Plugin or Get Source (SpeedHackDetector.sma - 2526 views - 5.7 KB)
__________________
"There is no knowledge, that is not power"

Last edited by fezh; 09-22-2009 at 15:25.
fezh is offline
Drakitoo
BANNED
Join Date: Aug 2009
Old 09-15-2009 , 22:07   Re: Speed Hack Detector v0.1.0
Reply With Quote #2

Good for my server.

+K
Drakitoo is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 09-15-2009 , 22:36   Re: Speed Hack Detector v0.1.0
Reply With Quote #3

GOOD JOB!!!
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 09-15-2009 , 23:13   Re: Speed Hack Detector v0.1.0
Reply With Quote #4

Simply Excellent. I was looking for this plugin
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
algoasi
Member
Join Date: Nov 2008
Location: Pluton
Old 09-15-2009 , 23:29   Re: Speed Hack Detector v0.1.0
Reply With Quote #5

OOH nice....!!


Últimamente tan volviendo los speedhacks...


GJB B@BY
__________________
algoasi is offline
Send a message via MSN to algoasi
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-16-2009 , 00:18   Re: Speed Hack Detector v0.1.0
Reply With Quote #6

You could try calculating the distance traveled with the time between the 2 origins which would give you speed and compare to sv_maxvelocity.

EDIT:

1.
PHP Code:
set_task(0.1"check_speed_hack"id__"b"
NO! Use client_PreThink( ) or something similar.

2. You only need to call is_valid_map( ) in plugin_init( ) because set_fail_state( ) stops the plugin.
If I'm wrong, it would be better to cache the validity of the map in a global variable instead of checking it every client connect.

3. I suggest to immediately punish player when the warnings get too high instead of waiting til death/round change.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 09-16-2009 at 00:22.
Exolent[jNr] is offline
4554
Senior Member
Join Date: Aug 2009
Old 09-16-2009 , 06:54   Re: Speed Hack Detector v0.1.0
Reply With Quote #7

Nice!!!!!!!!!!!!!!!
4554 is offline
algoasi
Member
Join Date: Nov 2008
Location: Pluton
Old 09-16-2009 , 10:17   Re: Speed Hack Detector v0.1.0
Reply With Quote #8

add cvars to ban steam id | Ip | Amxbans
__________________
algoasi is offline
Send a message via MSN to algoasi
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 09-16-2009 , 12:40   Re: Speed Hack Detector v0.1.0
Reply With Quote #9

Quote:
Originally Posted by Exolent[jNr] View Post
1.
PHP Code:
set_task(0.1"check_speed_hack"id__"b"
NO! Use client_PreThink( ) or something similar.

2. You only need to call is_valid_map( ) in plugin_init( ) because set_fail_state( ) stops the plugin.
If I'm wrong, it would be better to cache the validity of the map in a global variable instead of checking it every client connect.

3. I suggest to immediately punish player when the warnings get too high instead of waiting til death/round change.
1. I created the task just for avoid using prethink

2. I will test this.

3. Yes.

Quote:
Originally Posted by algoasi View Post
add cvars to ban steam id | Ip | Amxbans
I'm working on this too
__________________
"There is no knowledge, that is not power"
fezh is offline
Racoon
Senior Member
Join Date: Mar 2008
Location: Ukraine
Old 09-16-2009 , 15:05   Re: Speed Hack Detector v0.1.0
Reply With Quote #10

Does this plugin cause any lags? And how can I get rid of these messages in server console:
Quote:
L 09/16/2009 - 21:54:55: [SpeedHackDetector] Name: ^^_S.K.O.F.I.L.DlPSC_^^ | ST
AM ID:
L 09/16/2009 - 21:54:55: [SpeedHackDetector] Name: LijG | STEAM ID: STEAM_ID_
AN
L 09/16/2009 - 21:54:55: [SpeedHackDetector] Name: XMblPb | STEAM ID: STEAM_ID_
AN
L 09/16/2009 - 21:54:55: [SpeedHackDetector] Name: ~[ECLIPSE]~BJIADuK | STEAM I
: STEAM_ID_LAN
Dropped Kara from server
Reason: Client sent 'drop'
L 09/16/2009 - 21:55:00: [SpeedHackDetector] Name: Lolik | STE
M ID: STEAM_0:0:1831196684
L 09/16/2009 - 21:55:00: [SpeedHackDetector] Name: ProtoCri | STEAM ID: STEAM_0
0:902477807
L 09/16/2009 - 21:55:00: [SpeedHackDetector] Name: xXx | STEAM ID: STEAM
ID_LAN
L 09/16/2009 - 21:55:00: [SpeedHackDetector] Name: Aremka | STEAM ID: STEAM_ID_
AN
L 09/16/2009 - 21:55:00: [SpeedHackDetector] Name: XMblPb | STEAM ID: STEAM_ID_
AN
L 09/16/2009 - 21:55:00: [SpeedHackDetector] Name: ~[ECLIPSE]~BJIADuK | STEAM I
: STEAM_ID_LAN
L 09/16/2009 - 21:55:06: [SpeedHackDetector] Name: ProtoCri | STEAM ID: STEAM_0
0:902477807
L 09/16/2009 - 21:55:06: [SpeedHackDetector] Name: XMblPb | STEAM ID: STEAM_ID_
AN
L 09/16/2009 - 21:55:07: [SpeedHackDetector] Name: Aremka | STEAM ID: STEAM_ID_
AN
L 09/16/2009 - 21:55:09: [SpeedHackDetector] Name: xXx | STEAM ID: STEAM
ID_LAN
Everyone gets banned:

Last edited by Racoon; 09-16-2009 at 15:14.
Racoon is offline
Send a message via ICQ to Racoon
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode