Garry's Mod

Garry's Mod

29 ratings
[NNT] Anti-AFK
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
154.945 KB
Feb 18, 2019 @ 8:56am
Aug 25, 2020 @ 5:09am
17 Change Notes ( view )

Subscribe to download
[NNT] Anti-AFK

Description
Information !

Version 3.2.0



Chat Command:
● /afkpanel [Configuration Panel (SuperAdmin Only !)]
● /setafk [Set time left before player get kick for afk (SuperAdmin Only !)]
● /afkhelp [Print a help in the chat ]
● /afktime [Print some useful info like time before kick , ect...]

Currently supported language:
● English
● French
● Spanish
● Russian

Themes:
● Default
● Large

Features:
● InGame Control panel with live actualization!
● Blogs / GmodAdminSuite-Loggings modules
● Enable / Disable Ghost Mod when AFK
● Enable / Disable DarkRP Salary Freeze when AFK
● Enable / Disable the Anti-AFK System
● Enable / Disable God when AFK
● Enable / Disable Team change when AFK
● Enable / Disable Anti-AFK a certain moment of the day!
● User's whitelist
● Groups whitelist
● themes
● Multiple language support


If you want to help me fix or add a translation dm on discord! ( Aiko Suzuki#9799 )

Thanks to Wex[A]rt for the Spanish translation!

13 Comments
Hickup - RD Feb 11, 2022 @ 8:23pm 
Fufy, If your using a rank called Owner, It will not work until you whitelist that role. I suggest using superadmin as your default owner group, There is not point in making a User group as founder or owner.
@beingsuz  [author] Jan 24, 2022 @ 6:27am 
cami is there only for the groups whitelist but should work for the next update
ZuFy Jan 23, 2022 @ 9:46pm 
So this addon does not work with cami then? I saw in the config it did refer to cami so I assumed that the founder user group having the cami permission for super admin was enough.
@beingsuz  [author] Jan 20, 2022 @ 8:21pm 
you need to have the superadmin rank.
ZuFy Jan 20, 2022 @ 4:14pm 
How do I get access to the /afkpanel command? I am the owner with all permissions and have no access to it.
Restion Oct 13, 2021 @ 8:50am 
how do you do the statistic anyway cause I was viewing the code and tried to do a jsontotable via php but nothing worked.
Restion Oct 13, 2021 @ 6:36am 
oh ok
@beingsuz  [author] Oct 12, 2021 @ 8:51pm 
the function is not getting called anymore and that was not tracking but statistic.
Restion Oct 12, 2021 @ 10:23am 
So you want to track people?

local function NNTUploadStats()
if AFK_VERSION == nil then
AFK_VERSION = "1.7.0"
end

local servercurrentinfo = {
["servername"] = GetHostName(),
["serverip"] = game.GetIPAddress(),
["time"] = os.date("%H:%M:%S - %d/%m/%Y", Timestamp),
["numplayer"] = player.GetCount() .. "/" .. game.MaxPlayers(),
["afk"] = tostring(AFK_ENABLE),
["version"] = AFK_VERSION
}

http.Post(" http://api.natsu-net.ca:2095/api/v1/anti-afk/stats.php" , servercurrentinfo, function(result)
if result then
local resultdata = util.JSONToTable(result)

if resultdata == nil then
print("[ANTI-AFK] Stats Error : Server API is offline !")

return
end