This commit is contained in:
lifestorm
2024-08-05 18:40:29 +03:00
parent 9f505a0646
commit c6d9b6f580
8044 changed files with 1853472 additions and 21 deletions

View File

@@ -0,0 +1,37 @@
--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
local PLUGIN = PLUGIN
function PLUGIN:PlayerLoadedCharacter(client, character)
local uniqueID = "ixAntiAFK"..client:SteamID64()
timer.Create(uniqueID, 30, 0, function()
if (IsValid(client)) then
local result = client:CheckAFKTick(client.ixAfkInterval)
if (result) then
client.ixAfkInterval = result
timer.Adjust(uniqueID, result)
end
else
timer.Remove(uniqueID)
end
end)
client:ResetAFKTimer()
end
function PLUGIN:PlayerInteractItem(client)
client:ResetAFKTimer()
end
function PLUGIN:PlayerSay(client)
client:ResetAFKTimer()
end