Add afk and battlepass timer for easier battle pass experience

This commit is contained in:
2024-03-23 01:07:50 +01:00
parent f161030237
commit 1fb30875a9
10 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
-- CHAT_MSG_SYSTEM
function(e, msg)
if msg == nil then return false end
if string.find(msg, "You are now Away") then
aura_env.KickTime = GetTime() + 25 * 60
aura_env.AfkSince = GetTime()
return true
end
if string.find(msg, "You are no longer Away") then
aura_env.KickTime = 0
aura_env.AfkSince = 0
return false
end
end