local afk = false
local sampev = require('lib.samp.events')
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("afk", function()
afk = not afk
sampAddChatMessage(afk and "Фейк АФК активен" or "Фейк АФК отключен", -1)
end)
while true do
wait(0)
end
end
function sampev.onSendPlayerSync()
if afk then...