Forlix.org

2024/03/19 - 12:40
54.235.6.60 - 12264v
 
Last modified 2012/05/14
 

Forlix AFKManager (2009/07)

This is a small SourceMod addon (made for CS:S and TF2, but might work with other mods) designed to remove AFK players from the active team and put them into Spectator-mode. Inactive Spectators can be kicked after a set amount of time.
The AFK-check is based solely on the players buttons pressed and is optimized for minimal server load.


Changes in v1.05: (2009/07)

  • Initial release

Changes in v1.13: (2009/10)

  • AFK detection now done by checking players buttons every 200ms

Changes in v1.23: (2011/04)

  • Added ConVar to enable setting player and spectator idle times separately
  • Added ConVar to disable kicking while player count is below the set threshold (permits idlers)

Configuration ConVars:

forlix_afkmanager_player_time (default 60)
- Time in full seconds players can be AFK before being moved to Spectator (0 to disable)

forlix_afkmanager_spectator_time (default 300)
- Time in full seconds Spectators can be AFK before being kicked (0 to disable)

forlix_afkmanager_spectator_kick_threshold (default 16)
- Amount of total players connected above which AFK Spectators will be kicked

forlix_afkmanager_version
- Version tracking (don't modify this) - Servers running this plugin (GameTracker.com)


AFK to Spectator function
AFK to Spectator function
Download:

The plugin binary has been built for SourceMod version 1.3 and up.



Forlix AFKManager v1.23
License: GPL

forlix_afkmanager.zip (SourceMod plugin)

Source code
forlix_afkmanager_src.zip (Plugin source)

© 2006-2012 Forlix.org | Terms of use | Contact

Powered by Apache 2.2

Powered by Perl        Valid XHTML 1.1