Ulysses Stuff > Ulysses Release Archives

AAFK V_3.1 : Anti-AFK system for Garry's Mod

(1/25) > >>

MrPresident:
Anti-AFK Version 3.1

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:
Unzip the ULX_AFK folder into your addons folder.
Check the ConVars below and change them from a server console to your liking.

Console Variables:
ulx_afk_flagminutes - ( Default: 8 ) - How long in minutes a player needs to have not performed an action on the server to be flagged as afk
ulx_afk_kickminutes - ( Default: 10 ) - How long in minutes a player needs to be afk before they are kicked if kicking is enabled (see below)
ulx_afk_ignoreadmins - ( Default: 0 ) - Should the script ignore admins? 1-Yes, 0-No
ulx_afk_kickonafk - ( Default: 1 ) - Should the script kick at all? 1-Yes, 0-No : If this is set to 0 then AFKs will only be shown and players will not be kicked.
ulx_afk_kickonlywhenfull - ( Default: 0 ) - If this is enabled, players will only be kicked from the server for being AFK if the server is full. 1-Yes, 0-No

ChangeLog:

V3.1
+Fixed the verbage of the log messages to make more sense.

V3.0
+Recoded from scratch
+garrysmod13 release


As always... Questions/Comments are welcome!

Megiddo:
Very awesome. :D

Wully616:
You sir, are a legend and have won my Internets! Thanks for this  ;D

Eccid:
You are just too awesome. My admins and I were just discussing this the other day, and couldn't find one that worked. You rock, so many socks.

TweaK:
Sweeeet. Throwing this on my servers now :D

edit: it works, but it prints twice... "You is now AFK!"

wat

Navigation

[0] Message Index

[#] Next page

Go to full version