CSB AFK Kicker

v1.0.0 0 pobrań Daemon666 Ostatnia aktualizacja: Jul 14, 2026

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:

  1. csb_afk_warn seconds — chat + centre-screen warning.
  2. csb_afk_spec seconds — moved to spectator with cs_set_user_team().
  3. csb_afk_kick seconds — kicked, but only if at least csb_afk_kick_minplayers players 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, default a).
  • Spectators and unassigned players are ignored.
  • Every kick and spectator move is announced in coloured chat and logged.

Installation

  1. Compile and copy csb_afk_kicker.amxx into addons/amxmodx/plugins/.
  2. Add it to plugins.ini. The fakemeta, cstrike and fun modules must be enabled in modules.ini (they are by default).
  3. Tune the timers in amxx.cfg and change the map.

Instalacja

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

Cvary

CVARDefaultDescription
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.

Lista zmian — v1.0.0

1.0.0 - Initial release.
Wersje →
Współtwórcy: Daemon666 ✦
Oryginalny autor: KRoTaL (AFK Manager) Licencja: GPL-3.0

Ocena

No ratings yet.

Download v1.0.0

Compiled live from the source below — nothing pre-built.
Pobierz .sma
Pliki:
csb_afk_kicker.sma main 6.0 KB

Wymagania

AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Opcjonalne
ReAPI Opcjonalne
Metamod Metamod / Metamod-r
Moduły fakemeta cstrike fun
Znane konflikty Other AFK managers - two of them will fight over moving the same player to spectator.
Wróć do Pluginów