Ulysses

Ulysses Stuff => Releases => Topic started by: iViscosity on May 29, 2016, 09:10:25 PM

Title: Check AFK
Post by: iViscosity on May 29, 2016, 09:10:25 PM

Check AFK -- This post is no longer maintained. Check Github for updates: https://github.com/iViscosity/CheckAFK (https://github.com/iViscosity/CheckAFK)

Hey guys! So after a lot of help from members of the community (and I mean a lot (http://forums.ulyssesmod.net/index.php/topic,9558.0.html)), I've finally gotten my Check AFK command working. It's a pretty basic command; all it does is call a Derma Frame and make a timer, but it's fairly intricate. If you have experience and you want to, feel free to make some changes! If you want me to include those changes in here, just let me know and I can do that.


Please Read:
You must be registered and logged in to see the download link at the bottom of the post.
Also, please leave a "Compliment" Karma if you like this, which you can click over thataways <<< thanks!


Installation Guide:
Installing this is very simple. Take the ZIP file given in the downloads link at the bottom of the page (You MUST be registered and logged in to see the download.) and extract the checkAFK folder inside into your garrysmod/addons folder and then do a server restart to make sure everything is good.



Features:
Completely customizable. All things can be modified in the two .lua files provided in the download.
Completely automatized. All you have to do is use the command on them, and everything else will be handled.



Requirements:
Access to Server files (duh).
ULX v3.70 or higher.
ULib 2.60 or higher.



What does it do?
Check AFK is pretty self explanatory. It pops up a menu on a target's screen that asks them to click a button (pretty simple, eh?) and if they don't click that button within 10 seconds (you can change this time in the sh_cc_cafk.lua file) they will automatically be put into Spectator mode! No more AFKs!



TO-DO-LIST:
KNOWN BUGS:
N/A (please let me know if you find any!)




Updates:
v. 1.0: v. 2.0: v. 2.0.1: v. 2.0.2:
v. 2.1.0:

Released to Github, check here
 (https://github.com/iViscosity/CheckAFK)
I will update Github primarily, I will attempt to update this thread as soon as I make a commit, but I can't make any promises.


Screenshots:

(http://i.imgur.com/2dZG7SF.jpg?1)

(http://i.imgur.com/HAiLFl6.jpg?1)

(http://i.imgur.com/Y86xj2T.jpg?1)



Downloads below!
I said this earlier, but
YOU MUST BE REGISTERED AND LOGGED IN TO DOWNLOAD
Title: Re: Check AFK
Post by: iViscosity on June 16, 2016, 12:26:11 PM
Updated to Version 1.0.1:

Removed unnecessary PData, fixed some timer bugs.
Title: Re: Check AFK
Post by: iViscosity on July 10, 2016, 09:58:40 PM
Update:

Added to Github: https://github.com/iViscosity/CheckAFK (https://github.com/iViscosity/CheckAFK)

Title: Re: Check AFK
Post by: Kraken on July 28, 2016, 10:56:56 AM
What will happen if this is used on a sandbox server instead of something with spectator?
Title: Re: Check AFK
Post by: OpticPotatOS on July 28, 2016, 10:57:59 AM
What will happen if this is used on a sandbox server instead of something with spectator?
It'll be completely useless?
Title: Re: Check AFK
Post by: iViscosity on July 28, 2016, 01:34:56 PM
What will happen if this is used on a sandbox server instead of something with spectator?
It wouldn't work. It uses a TTT specific command; "ttt_spectator_mode". I could make something to check if people are AFK in Sandbox.
Title: Re: Check AFK
Post by: iViscosity on September 04, 2016, 12:52:44 PM
Updated to v. 2.0. Added:

Support for Sandbox - Extract the sandbox version instead
Title: Re: Check AFK
Post by: iViscosity on October 19, 2016, 11:26:30 AM
Updated to v2.0.1. TTT - Added echo to all players on a failed AFK Check.
Sandbox - Removed "IsValid( v )" so kick message echoes to Console.
Title: Re: Check AFK
Post by: iViscosity on October 19, 2016, 01:12:01 PM
Updated to v2.1.1. Added optional timer length for Admins. Default remains 10.
Title: Re: Check AFK
Post by: allofmywutsteam on October 19, 2016, 06:37:41 PM
I'm failing to differentiate between the current AFK system by default? Instead of the auto warning in the top right, this addon would provide a pop-up for confirmation?
Title: Re: Check AFK
Post by: iViscosity on October 19, 2016, 06:45:44 PM
I'm failing to differentiate between the current AFK system by default? Instead of the auto warning in the top right, this addon would provide a pop-up for confirmation?
What this will do is allow admins to use this on a player, and it will pop up a notification in the centre if their screen, if they don't click the button within the specified time, 10 seconds by default for TTT, 15 for Sandbox, they will be put into spectator mode, or kicked, depending on the game mode, respectively. If TTT, they will be put into spectator mode and then the original question will go away, being replaced by another one asking if they are back. When they click that, they will be removed from spectator mode.

Hope I answered your question.