addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt2.7 KB
No file matches.
AFK Detection And Kick 1.0.0 (olds.ro)
======================================
Finds players who are away from the keyboard and moves them to the
spectators (or kicks them), so the teams stay playable. A living player who
neither moves nor turns the view for olds_afk_time seconds is AFK. During the
last olds_afk_warn seconds the player sees a countdown in the centre of the
screen and hears a short beep every second, so anyone who is really there
has time to react. Everyone sees a chat line when an AFK player is moved or
kicked.
Requirements
- ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
- AMX Mod X 1.10 or newer with the fakemeta and fun modules (both ship
with AMX Mod X)
- Tested on AMX Mod X 1.10.0.5490, ReAPI 5.29.0.358, ReGameDLL_CS 5.30.0.814,
ReHLDS 3.15.0.896
Install
1. Compile scripting/olds_afk.sma with amxxpc 1.10 and copy olds_afk.amxx to
addons/amxmodx/plugins/. The compiler needs ReAPI's include files
(reapi.inc and reapi_*.inc) in addons/amxmodx/scripting/include/.
2. Copy data/lang/olds_afk.txt to addons/amxmodx/data/lang/.
3. Copy configs/plugins/olds_afk.cfg to addons/amxmodx/configs/plugins/.
4. Add olds_afk.amxx to addons/amxmodx/configs/plugins.ini.
What counts and what does not
- Each player is checked once a second. Moving, or turning the view with
the mouse, resets the idle time.
- The idle time pauses during the freeze time, and while the player has the
team menu, the buy menu or any plugin menu open, for at most 30 seconds
in a row (a text menu closed with Esc still counts as open on the
server, so a longer pause could hide an AFK player).
- Dead players and spectators are not counted, and every new round starts
everyone from zero.
- Admins with one of the olds_afk_immune flags are never counted.
- With fewer than olds_afk_minplayers players on the server the plugin does
nothing and shows no warnings.
- A player moved to the spectators keeps their score; if they carried the
bomb, it is dropped where they stood.
Settings (addons/amxmodx/configs/plugins/olds_afk.cfg)
olds_afk_time 45 idle seconds before the action (10 - 3600)
olds_afk_warn 10 seconds of countdown warning before it (0 - 60)
olds_afk_action 1 1 = move to the spectators, 2 = kick
olds_afk_minplayers 6 do nothing with fewer players on the server (0 - 32)
olds_afk_immune "a" admin flags that are never counted; empty = nobody
Commands
None.
Files
The warning beep is the stock buttons/button10.wav, so nothing is
downloaded. Texts are in data/lang/olds_afk.txt (English).
Credits and licence
Written from scratch by alexit (olds.ro workshop) for workshop card LIB-1395.
Licence: GPL-3.0-or-later.