Description
I'm used
AFK Manager by Rothgar for long time on my servers. I think that this plugin have best logic in AFK check (checking chat, etc...) than other AFK plugins.
But after looking at the code.. Wait, on my server here will be up to 64 timers?! I made a lot of optimization at my plugins list (one of my plugins is 9 Kb and have functionality of 10 plugins like ShowDamage, ResetScore,...), so I started cleaning code of AFK Manager.
Basic idea is:
1) Split games - currently I have only CSS version, but I want to make TF2 version later
2) Remove cvars that most people don't change, e.g. threshold.
3) Optimize logic based on current game
This plugin use logic "move at X, kick at Y", excluding dead players and bots, without different spawn wait time and some original plugin features.
Only one timer, no global handles at all.
Cvars- sm_afk_move_min - minimum count of players to start moving players to spectators
- sm_afk_kick_min - minimum count of players to start kicking players
- sm_afk_move_time - AFK time for moving player to spectators, 0 - disable AFK Move
- sm_afk_kick_time - AFK time for kicking player, 0 - disable AFK Kick
- sm_afk_warn_time - Remaining time for action to start warn player (for both kick & move)
- sm_afk_immune - Amins immunity: 0 - disabled, 1 - complete, 2 - kick, 3 - move
- sm_afk_immune_flag - Admin flag for immunity check (blank=any flag)
Installation- Put .smx in plugins folder and (optionally) .sp in scripting folder
- Put afk_manager_css.phrases.txt in translations folder
- Plugin will create config file at cfg/sourcemod folder after loading
Changelog (CSS)- 06/06/13 - v1.0
Initial release
- 07/01/13 - v1.1
* Removed moving players to spectators if they in Unassigned team (but still counts them as AFK for kicking)
* Small code cleaning & more comments on code