~Features~
Ability to change time with console command uafk_time <integer>
Ability to disable the script with uafk_enabled <1/0>
Ability to allow admins immunity to kick with uafk_adminimmune <1/0>
Ability to allow the kicking function to not happen with uafk_kickenabled<1/0>

New.. it plays a sound when you are flagged as afk on your client to alert you so if you are there you can move and avoid being kicked.
Console commands can now be used from a dedicated server console.
~~~~~~~


The way this script works is:
It takes the time you have set in the config (top lines of the .lua file) or if you used uafk_time to set your own in game... and every amount of seconds as defined it checks the players entity angle.. (this is basically where the mouse is pointed) and stores it into a variable for your specific client.
If it finds that you have not changed angles since the last time it checked, and you are not flagged as afk, it will flag you as afk.
If it finds that you have not moved since it last checked and you are already flagged as afk, it will kick you from the server (assuming you have kick enabled)

The default time is 150 seconds.. this allows for around 5-7 minutes of complete afk before being kicked.. depending on how soon after a check you stop moving.


Suggestions for a future version are welcome.. I will try to implement anything that seems worth implementing.


ChangeLog:
v1.0
-Release

Console Commands:
uafk_enabled <1/0> - Turns UAfk on or off (Default On)
uafk_time <integer> - sets the time (in seconds) on the afk check. How often the script checks angles. (Default 150 seconds.. which is 2.5 minutes)
uafk_adminimmune <1/0> - This sets whether or not admins are immune to being kicked for being afk. (Default Off)
uafk_kickenabled <1/0> - Currently no real point in this.. I plan on implimenting more features later that will make use of the player not being kicked but still being flagged as afk.. such as name changing to <afk> Name.. or putting text above their head. (Default On)

All of these defaults can be changed in the top of the Uafk.lua file