Author Topic: Check AFK  (Read 12622 times)

0 Members and 2 Guests are viewing this topic.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Check AFK
« 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

Hey guys! So after a lot of help from members of the community (and I mean a lot), 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:
  • Add support for Sandbox [DONE]
KNOWN BUGS:
N/A (please let me know if you find any!)




Updates:
v. 1.0:
  • Initial release
v. 2.0:
  • Removed unnecessary PData, fixed some timer bugs.
v. 2.0.1:
  • Added support for Sandbox. Automatically kicks, instead of setting to spectator mode (as there is none). Simply extract the "Sandbox" version, instead.
v. 2.0.2:
  • TTT - Added echo to all players on a failed AFK Check.
  • Sandbox - Removed "IsValid( v )" so kick message echoes to Console.
v. 2.1.0:
  • Updated to v. 2.1.0. Added optional timer length for Admins. Default remains 10.

Released to Github, check here
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:









Downloads below!
I said this earlier, but
YOU MUST BE REGISTERED AND LOGGED IN TO DOWNLOAD
« Last Edit: November 22, 2016, 07:13:13 AM by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Check AFK
« Reply #1 on: June 16, 2016, 12:26:11 PM »
Updated to Version 1.0.1:

Removed unnecessary PData, fixed some timer bugs.
« Last Edit: October 21, 2016, 09:21:06 AM by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Check AFK
« Reply #2 on: July 10, 2016, 09:58:40 PM »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline Kraken

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Check AFK
« Reply #3 on: July 28, 2016, 10:56:56 AM »
What will happen if this is used on a sandbox server instead of something with spectator?

Offline OpticPotatOS

  • Jr. Member
  • **
  • Posts: 53
  • Karma: 0
  • GLaDOS
    • Gaming for Everyone
Re: Check AFK
« Reply #4 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?
My website isn't my website, rather, it's the gaming network my sever is connected to.

ttt.gfe.nu

Unforeseen Consequences

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Check AFK
« Reply #5 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.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Check AFK
« Reply #6 on: September 04, 2016, 12:52:44 PM »
Updated to v. 2.0. Added:

Support for Sandbox - Extract the sandbox version instead
« Last Edit: October 21, 2016, 09:20:12 AM by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Check AFK
« Reply #7 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.
« Last Edit: October 21, 2016, 09:19:59 AM by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Check AFK
« Reply #8 on: October 19, 2016, 01:12:01 PM »
Updated to v2.1.1. Added optional timer length for Admins. Default remains 10.
« Last Edit: October 21, 2016, 09:19:48 AM by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
Re: Check AFK
« Reply #9 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?
"Then Jesus said to his disciples, 'Whoever wants to be my disciple must deny themselves and take up their cross and follow me.'" - Matthew 16:24



MNWO: Steam | Discord | Website | Join Server

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Check AFK
« Reply #10 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.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.