local samp = require 'samp.events'
local state = false
function main()
while not isSampAvailable() do wait(0) end wait(1)
wait(1300)
sampAddChatMessage("{FFFFFF}ACTIVATED",-1)
sampRegisterChatCommand('flood', function()
state = not state
end)
while true do wait(0)
if state then
printStringNow('rebotaet!!', 100)
setGameKeyState(21, 255)
wait(0)
setGameKeyState(21, 0)
end
end
end