View Single Post
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 10-03-2016 , 13:22   Re: Autoban on SpinHack detections
Reply With Quote #17

Hate to bring up a thread from the dead, but I find myself in a similar position as scso1502. I wish to autoban players after X detections in X minutes/seconds. The solution above by allienaded is good, but too aggressive and can cause many false positive bans, hence the need for a customizable number of detections in a certain time period. Is anyone able to do this?

Edit: I've "fixed" El Diablo War3Evo's plugin on page 1 to allow a value more than 1, haven't tested it however. Change line 23 to:

PHP Code:
    g_hAutoBanSpinHack CreateConVar("smac_spinhack_ban""6""0 - Disabled.\nBans a player if detects spinhack this number of times."FCVAR_PLUGINtrue0.0true10.0); 
Note the change of the last number from 1 to 10, makes the maximum detections 10. Change it to something higher if you prefer.

Edit 2: Works well! Triggers bans after X amount of detections.

Last edited by sneaK; 10-03-2016 at 19:53.
sneaK is offline