Warns, spectates and finally kicks idle players, based on real button and view-angle input.
Daemon666
1.0.0 - Initial release.
| csb_afk_kicker.sma main | 88ed533 | 6.0 KB |
README.md
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.
Installation
1. Put csb_afk_kicker.amxx in addons/amxmodx/plugins/ 2. Add it to plugins.ini 3. Make sure fakemeta, cstrike and fun are enabled in modules.ini 4. Change map
Cvars
| CVAR | Default | Description |
|---|---|---|
csb_afk_enabled |
1 |
Enable or disable AFK detection. |
csb_afk_warn |
45 |
Seconds of no input before the player is warned. |
csb_afk_spec |
75 |
Seconds of no input before the player is moved to spectator. |
csb_afk_kick |
150 |
Seconds of no input before the player is kicked (0 = never). |
csb_afk_kick_minplayers |
12 |
Only kick when at least this many players are connected. |
csb_afk_immunity |
a |
Access flag that is never warned, moved or kicked. |
csb_afk_grace |
30 |
Seconds after connecting during which the player is ignored. |
Journal des modifications — v1.0.0
1.0.0 - Initial release.Versions →
Note
No ratings yet.
Download v1.0.0
Prérequis
| AMX Mod X | ≥ 1.9 |
| Engine | ReHLDS HLDS |
| ReGameDLL | Optionnel |
| ReAPI | Optionnel |
| Metamod | Metamod / Metamod-r |
| Modules | fakemeta cstrike fun |
| Conflits connus | Other AFK managers - two of them will fight over moving the same player to spectator. |
Contributeurs









