Warns, spectates and finally kicks idle players, based on real button and view-angle input.
CSB AFK Kicker detects idling the only way that actually works: it watches pev_button and pev_v_angle in an FM_PlayerPreThink forward. A player who neither presses a key nor moves the mouse by more than half a degree is idle — a wall-hugger who wiggles their mouse is not, and that is the difference between this and the plugins that only look at origin.
The punishment is a ladder, not a hammer:
csb_afk_warnseconds — chat + centre-screen warning.csb_afk_specseconds — moved to spectator withcs_set_user_team().csb_afk_kickseconds — kicked, but only if at leastcsb_afk_kick_minplayersplayers are on the server. On an empty server an AFK player costs nothing, so there is no reason to kick them.
Inspired by AFK Manager by KRoTaL. Independent GPL re-implementation.
Features
- Real input detection (buttons + view angles), not origin comparison.
- Three-stage warn / spectate / kick ladder, each stage a cvar.
- Connect grace period (
csb_afk_grace) so a client that is still loading the map is never punished. - Flag-based immunity (
csb_afk_immunity, defaulta). - Spectators and unassigned players are ignored.
- Every kick and spectator move is announced in coloured chat and logged.
Installation
- Compile and copy
csb_afk_kicker.amxxintoaddons/amxmodx/plugins/. - Add it to
plugins.ini. Thefakemeta,cstrikeandfunmodules must be enabled inmodules.ini(they are by default). - Tune the timers in
amxx.cfgand change the map.









