AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Trash (https://forums.alliedmods.net/forumdisplay.php?f=22)
-   -   Speed Hack Detector v0.1.1a (https://forums.alliedmods.net/showthread.php?t=103724)

fezh 09-15-2009 21:30

Speed Hack Detector v0.1.1a
 
1 Attachment(s)
.: 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!

Drakitoo 09-15-2009 22:07

Re: Speed Hack Detector v0.1.0
 
Good for my server.

+K

#8 SickneSS 09-15-2009 22:36

Re: Speed Hack Detector v0.1.0
 
GOOD JOB!!!

lucas_7_94 09-15-2009 23:13

Re: Speed Hack Detector v0.1.0
 
Simply Excellent. I was looking for this plugin :D

algoasi 09-15-2009 23:29

Re: Speed Hack Detector v0.1.0
 
OOH nice....!!


Últimamente tan volviendo los speedhacks...

:wink:
GJB B@BY

Exolent[jNr] 09-16-2009 00:18

Re: Speed Hack Detector v0.1.0
 
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.

4554 09-16-2009 06:54

Re: Speed Hack Detector v0.1.0
 
Nice!!!!!!!!!!!!!!! :D

algoasi 09-16-2009 10:17

Re: Speed Hack Detector v0.1.0
 
add cvars to ban steam id | Ip | Amxbans

fezh 09-16-2009 12:40

Re: Speed Hack Detector v0.1.0
 
Quote:

Originally Posted by Exolent[jNr] (Post 934340)
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 (Post 934691)
add cvars to ban steam id | Ip | Amxbans

I'm working on this too :mrgreen:

Racoon 09-16-2009 15:05

Re: Speed Hack Detector v0.1.0
 
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:
http://i080.radikal.ru/0909/05/ddda14ef15a0.jpg


All times are GMT -4. The time now is 19:37.

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