local act = false
local delay = 500
local message = "/ot"
local hotkey = 0x6E
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand("ot", function()
act = not act
sampAddChatMessage("Статус флудера: " .. (act and "ВКЛ" or "ВЫКЛ"), 0xFF0000)
end)
while true do
wait(0)
if act then
sampSendChat(message)
wait(delay)
end
end
end
function onGameKeyboardPress(key)
if key == hotkey then
act = not act
sampAddChatMessage("Статус флудера: " .. (act and "ВКЛ" or "ВЫКЛ"), 0xFF0000)
end
end
function onReceiveRpc(id, bitStream)
if id == 91 then
act = false
sampAddChatMessage("Флуд остановлен из-за пойманного репорта.", 0xFF0000)
end
end