mirror of
https://github.com/sr229/metastruct-experiments.git
synced 2024-09-20 06:30:36 +00:00
12 lines
327 B
Lua
12 lines
327 B
Lua
-- This should be added either as a autorun
|
|
-- or on your own outfit.
|
|
|
|
hook.Add("AFK", "pacafk", function(ply, afk)
|
|
if ply and ply == LocalPlayer() then
|
|
if afk then
|
|
LocalPlayer():ConCommand("pac_event afk 1")
|
|
else
|
|
LocalPlayer():ConCommand("pac_event afk 0")
|
|
end
|
|
end
|
|
end)
|