Garry's Mod

Garry's Mod

Not enough ratings
DAFK - With Kick
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
29.777 KB
28 Jul, 2019 @ 2:07pm
8 Apr, 2020 @ 8:36am
7 Change Notes ( view )

Subscribe to download
DAFK - With Kick

In 2 collections by RyanTheTechMan
Chillen With Friends
137 items
G.O.D: Server Utilities
17 items
Description
ALL CREDIT GOES TO THE ORIGINAL DEV: DBotThePony

Original Addon: DAFK - AFK Watcher and Notify

I have added a kicking feature to the already amazing DAFK addon.

ULX is supported for giving players the permission to bypass the kick as well as editing server variables.

>>>>>You must remove the original version for this to work!<<<<<

~~~~~~~~~~~~

DAFK - Be notified when someone goes AFK, or backs to his keyboard!
This would be useful for server owners only.

Server Variables:
* sv_dafk_chat 1 - Notify in chat (player still would be not notified IN CHAT if he is 2048 Hammer Units away from player (player is still notified in his console))
* sv_dafk_timer 180 - How much player must idle to get AFK status.
NEW: sv_dafk_kickenabled 1 (enabled by default, enable it to enable the kicking feature)
NEW: sv_dafk_ignoreadmins 0 (disabled by default, enable it to kick admins / users with the permission as well)
NEW: sv_dafk_kicktime 600 (10 min by default, will kick the player in this amount of time)
NEW: sv_dafk_ticking_only 0 (Should time it counts down only have a ticking noise, instead of the bell ringing as well?)

You can edit all server variables within ULX!

Clientside Options
cl_dafk_chat : 1 : Display AFK messages in chat if server is allowing to do it.
cl_dafk_screen : 1 : Draw AFK time on screen
cl_dafk_text : 1 : Draw text on the top of sleeping player
cl_dafk_zzz : 1 : Draw ZZZ chars on the top of sleeping player

NEW: ULX Permissions:
dafk_kick_immunity: Admins+ have this by default. Give this to a group to bypass the auto kick
dafk_admin: Admins+ have this by default. Give this to a group to allow changing DAFK settings within ULX

NEW: Commands:
!afk: Set yourself as AFK.

~~~~~~~~~~~~
7 Comments
RyanTheTechMan  [author] 9 Jul, 2021 @ 3:47pm 
It may, I don't have a bitbucket and I also haven't touched gmod code in a while. When I make another gmod server I may work out a fix. He has the right to the code so he can take what he wants. If he doesn't end up taking it, then I will make a push when I get around to it.
Background 8 Jul, 2021 @ 5:14pm 
Wouldn't be bad for it to just offer to push to his repository for a feature like this. xD
YuRaNnNzZZ 2 Jan, 2020 @ 9:18am 
you are breaking workshop rules
that's enough for a takedown
RyanTheTechMan  [author] 2 Jan, 2020 @ 8:18am 
I am not breaking any of the rules. I am linking the original dev and I have added quite a bit of content to this addon. This is not a reupload because I have added things to it. Also, his orignal addon is under the Apache License 2.0, please read about that! "It allows users to use the software for any purpose, to distribute it, to modify it, and to distribute modified versions of the software under the terms of the license, without concern for royalties."
YuRaNnNzZZ 2 Jan, 2020 @ 6:40am 
addon's license doesn't give you permission from original author to reupload it on workshop - http://wiki.garrysmod.com/page/Steam_Workshop_Rules
" Do not reupload addons - Reuploaded addons will be taken down. Search workshop before uploading. Reuploading workshop addons is strictly forbidden, whatever the reupload reason is. (Even if the original workshop addon was removed)"
RyanTheTechMan  [author] 10 Sep, 2019 @ 4:08pm 
Foxtrot, I have added a server variable:
sv_dafk_ticking_only just set it to 1 after you update.
dashu 8 Sep, 2019 @ 2:08am 
The sound effects are obnoxious, just keep the ticking sound and it's perfect.