Promoveaza serverul

CSB AFK Kicker v1.0.0

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.
Instalare
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
Cvar-uri7
CVARDefaultDescription
csb_afk_enabled1Enable or disable AFK detection.
csb_afk_warn45Seconds of no input before the player is warned.
csb_afk_spec75Seconds of no input before the player is moved to spectator.
csb_afk_kick150Seconds of no input before the player is kicked (0 = never).
csb_afk_kick_minplayers12Only kick when at least this many players are connected.
csb_afk_immunityaAccess flag that is never warned, moved or kicked.
csb_afk_grace30Seconds after connecting during which the player is ignored.
Evaluare
Încă nu are evaluări