AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   SpeedHack Detector v2 [All] (https://forums.alliedmods.net/showthread.php?t=131219)

ot_207 07-02-2010 09:39

SpeedHack Detector v2 [All]
 
1 Attachment(s)

Description:
This plugin bans player if it detects more "CommandStarts" than necessary.
Read all the info before installing the plugin!
If there is something that you have not understood ask questions or do not use the plugin!

Questions that are answered here will be ignored!
Do not use this plugin on surf and kz servers!

Important note:
I suggest testing the plugin before enabling the punishment so that you are sure that it works correctly.
I have tested it, however I do not know how the plugin behaves when the server is full or the clients experience LAG, that is why I need confirmations that it works!
Please post the cheats that this plugin does not detect so that I can test and try to find better methods and also post the false bans of the plugin, use set the logging cvar to 1 and post them here for improvements.
I now have added a new cvar that sets the limit of counts for the ban decision. Please try as many values as possible. The cvar is spd_limit, please post your server type (BH, ZP, Soccer, etc.) and also the value that is good for your server!

Cvars:
spd_enable 1 // If the plugin is enabled or not (do not pause it!)
spd_bantime 0 // The ban time 0 means that the ban is permanent, other values mean time in minutes
spd_adminonly 1 // Print the chat messages to admins only!
spd_logbans 1 // If you want the plugin to create a list of the bans, you can find this list in "addons/amxmodx/logs/shd_bans.log"

// If you make the value less you increase the possibility of amount of false bans. If you make it bigger the plugin will not manage to detect cheaters.
spd_limit 150 // The minimum number of counts to ban a player. Do not set this under 130!

spd_punishtype 0 // Punish method see available options below
  • 0: Just show a message (for test purposes!)
  • 1: Ban with AMXBANS. (new command type)
  • 2: Ban with command amx_ban.
  • 3: Same as previous, but without extern plugin support.
  • 4: Ban with command amx_banip.

Useful Links:
Servers using this plugin

Changelog:
PHP Code:

2.0  fixed everythingperfected the detection methodfixed the server lag issue that would ban playersFixed cvar detections and added clockwindow detection
1.6  fixed a problem where the plugin would not detect the developer cvar
1.5  added cvar for limitimproved logging
1.4  added developer cvar kick
1.3  improved loggingincreaced tolerance
1.2  added more cvars for customization
1.1  added one more option to punishtype cvar
1.0  initial release 

Credits:
Code:

Empower - posted all the false bans, suggested improvements, server lag false detection problem, clockwindow information
Connor  - info about corectly detecting developer cvar


fezh 07-02-2010 10:01

Re: SpeedHack Detector [All]
 
Thanks for making a working version of my old plugin :mrgreen:

Just a couple of things you can change:
PHP Code:

is_valid_map()
{
    static 
mapname[32]
    
get_mapname(mapname31)

    if (
containi(mapname"kz") != -|| containi(mapname"surf") != -1)
    {
        
set_fail_state("SHD does not work on Kreedz / Surf maps.")
        return 
false;
    }
    return 
true;


I don't think such function is still needed, but if you think so you can change static to new since there is no purpose of using static variables there (this goes also to the punish_player(id) function).

xPaw 07-02-2010 10:18

Re: SpeedHack Detector [All]
 
- client_connect is not necessary, you got these stuffs in disconnect
- returns in client_* aren't needed (not a big deal)
- is_valid_map is not really a good solution, because a lot of maps has different map prefixes
- static aren't needed

[off]
Quote:

Originally Posted by Hawk552 (Post 1219362)
Code:

public server_frame()
{
    new i[4096], am[4096], cool[4096], because[4096], I[4096], understand[4096], how[4096], static[4096], works[4096], and[4096], want[4096], to[4096], show[4096], the[4096], world[4096], despite[4096], using[4096], it[4096], completely[4096], wrong[4096]
}



ot_207 07-02-2010 10:55

Re: SpeedHack Detector [All]
 
Updated it!
Have not changed the version since these improvements do not affect the plugin functionality.

Quote:

Originally Posted by fezh (Post 1226420)
Thanks for making a working version of my old plugin :mrgreen:

You're welcome. :wink: Have you tested it?

Empowers 07-02-2010 11:02

Re: SpeedHack Detector [All]
 
[en]
Is there any false bans ?

[ru]
Бывают ли ложные баны?

ot_207 07-02-2010 11:54

Re: SpeedHack Detector [All]
 
Quote:

Originally Posted by Empowers (Post 1226447)
[en]
Is there any false bans ?

[ru]
Бывают ли ложные баны?

First of all, I am not russian. Secondly read the description.

fezh 07-02-2010 12:00

Re: SpeedHack Detector [All]
 
Quote:

Originally Posted by ot_207 (Post 1226485)
First of all, I am not russian.

Epic.

Alucard^ 07-02-2010 12:12

Re: SpeedHack Detector [All]
 
This + Block Wallhack (with less cpu usage) = cool security

ot_207 07-02-2010 12:21

Re: SpeedHack Detector [All]
 
Quote:

Originally Posted by Alucard^ (Post 1226523)
This + Block Wallhack (with less cpu usage) = cool security

Just wait Block Wallhack in v6 will use a modified engine module that I will make, so everything will work with less cpu.

Xyliance 07-02-2010 13:29

Re: SpeedHack Detector [All]
 
doesnt work on amxbans

[AMXBANS] amx_ban <Time> <steamID | Name> <Reason>
[AMXBANS] amx_ban <Time> <steamID | Name> <Reason>

[SHD] Player test was permanently banned due using speed hack


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

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