12 hours ago12 hr Administrator Detects idle players and moves them to spectators or kicks them after warnings, with a pause for players who are dead, in menus or watching a long spectate. 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, ReAPIAMX 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 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/.Copy data/lang/olds_afk.txt to addons/amxmodx/data/lang/.Copy configs/plugins/olds_afk.cfg to addons/amxmodx/configs/plugins/.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. InstallDownload the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini. Files: addons/amxmodx/scripting/olds_afk.sma License: GPL-3.0-or-later.Written for the olds.ro plugin workshop (LIB-1395), by alexit, reviewed by alexit and checked by the automated Claude review. AFK Detection And Kickv1.0.0Counter-Strike 1.6PluginTests passedAMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.9 KBUpdated 12 hours agoSign in to downloadolds_afk.smaPawn (AMX Mod X) · 322 lines4 files/* * AFK Detection And Kick (olds.ro workshop card LIB-1395) * * A living player who neither moves nor turns the view for olds_afk_time * seconds is moved to the spectators (or kicked). 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.Show all 322 linesChangelogVersions (1)Install into: cstrike/Open the full page →
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.