CSB Speedhack Detection

v1.0.0 0 descărcări Daemon666 Ultima actualizare: Jul 15, 2026

Counts usercmds per real second and flags players whose command rate stays impossibly high.

CSB Speedhack Detection watches the one thing a client-side speedhack cannot hide: it makes the client send far more usercmds per second than the engine should ever process. The plugin counts usercmds from the CmdStart forward and, once a second, compares each player's rate to a configurable ceiling. A single spike is ignored; a sustained rate over several strikes is treated as a hack.

How it works

  • Every usercmd increments a per-player frame counter.
  • A 1-second repeating task reads and clears each counter.
  • A count above csb_speed_maxcmds adds a strike; a clean second removes one.
  • Reaching csb_speed_strikes logs the player and, with csb_speed_action 1, kicks them.

Tuning

The default ceiling of 350 usercmds/s sits well above a legitimate 250 fps player but far below what a speedhack produces. Raise it if your community runs uncapped high-fps configs.

Installation

  1. Enable the fakemeta module in modules.ini.
  2. Compile csb_speedhack_detect.sma, copy it to addons/amxmodx/plugins/ and add it to plugins.ini.
  3. Change the map.

Instalare

1. Enable the fakemeta module in addons/amxmodx/configs/modules.ini
2. Put csb_speedhack_detect.amxx in addons/amxmodx/plugins/ and add it to plugins.ini
3. Change map

Cvar-uri

CVARDefaultDescription
csb_speed_enabled 1 Enable speedhack detection.
csb_speed_maxcmds 350 Usercmds per second above which a strike is counted.
csb_speed_strikes 3 Strikes before the player is punished.
csb_speed_action 0 0 = log + announce, 1 = kick.

Jurnal de modificări — v1.0.0

1.0.0 - Initial release.
Versiuni →
Contribuitori: Daemon666 ✦
Licență: GPL-3.0

Evaluare

No ratings yet.

Download v1.0.0

Compiled live from the source below — nothing pre-built.
Descarcă .sma
Fișiere:
csb_speedhack_detect.sma main 2.9 KB

Cerințe

AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Opțional
ReAPI Opțional
Metamod Metamod / Metamod-r
Module fakemeta
Conflicte cunoscute Extreme-fps or fps_override setups can approach the ceiling; raise csb_speed_maxcmds to avoid false strikes.
Înapoi la Pluginuri