Garry's Mod

Garry's Mod

[NNT] Anti-AFK
13 条留言
Hickup - RD 2022 年 2 月 11 日 下午 8:23 
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  [作者] 2022 年 1 月 24 日 上午 6:27 
cami is there only for the groups whitelist but should work for the next update
ZuFy 2022 年 1 月 23 日 下午 9:46 
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  [作者] 2022 年 1 月 20 日 下午 8:21 
you need to have the superadmin rank.
ZuFy 2022 年 1 月 20 日 下午 4:14 
How do I get access to the /afkpanel command? I am the owner with all permissions and have no access to it.
@beingsuz  [作者] 2021 年 10 月 13 日 下午 2:23 
Restion 2021 年 10 月 13 日 上午 8:50 
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 2021 年 10 月 13 日 上午 6:36 
oh ok
@beingsuz  [作者] 2021 年 10 月 12 日 下午 8:51 
the function is not getting called anymore and that was not tracking but statistic.
Restion 2021 年 10 月 12 日 上午 10:23 
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
Calvinator 2021 年 7 月 18 日 下午 8:16 
i hate when i get kicked cause i constantly have to do chores when im playing gmod, 1/10 hate it (no offense)
Runawaybrute63 2020 年 9 月 22 日 上午 9:47 
Nice Addons ! best afk menu !!
WrenHowl 2019 年 4 月 29 日 下午 8:22 
Nice addon mon beau Aiko