Garry's Mod

Garry's Mod

Not enough ratings
Anti-AFK 4.0
 
Rate  
Favorite
Favorited
Unfavorite
File Size
Posted
0.002 MB
Feb 16, 2018 @ 2:34pm
1 Change Note ( view )

Subscribe to download
Anti-AFK 4.0

Subscribed
Unsubscribe
Description
Anti-AFK Version 4.0

Description:
This script monitors a players movements and actions on a server to attempt to determine if they are AFK. If they are found to be AFK it will tag them as such (client-side graphical).
Optionally (enabled by default) you can have the script kick players who have been afk for a certain number of minutes.

Installation Instructions:
Subscribe to the addon on the Steam Workshop. Once you've started your server, you can modify the default settings through your server console. See ConVars below.
http://steamcommunity.com/sharedfiles/filedetails/?id=1303583411

Console Variables:
aafk_enabled - ( Default: 1 ) - Is AAFK enabled? (0 - No, 1 - Yes)
aafk_flagminutes - ( Default: 5 ) - How long (in minutes) the player needs to be away before being flagged as AFK
aafk_kickminutes - ( Default: 10 ) - How long (in minutes) the player needs to be away before being kicked (if kicking is enabled).
aafk_ignoreadmins - ( Default: 0 ) - Should AAFK ignore admins? (0 - No, 1 - Yes)
aafk_kickenabled - ( Default: 1 ) - Should AAFK kick players who have remained AFK? (0 - No, 1 - Yes)
aafk_kickonlywhenfull - ( Default: 0 ) - If kicking is enabled, should AAFK only kick players when the server is full? (0 - No, 1 - Yes)
aafk_displayafkinchat - ( Default: 1 ) - Should it be announced to chat when a player goes AFK or returns from AFK? (0 - No, 1 - Yes)

Further Configuration:
If you are running ULX, you can give players or groups the ability to be ignored by the system. This also requires for aafk_ignoreadmins to be set to 1.

ulx groupallow [group] aafk_immunity
ulx userallow [user] aafk_immunity


Questions or Comments? Please comment!
< >
1 Comments
Yezetee Apr 19, 2018 @ 5:36pm 
glad to see you finally update this script :)