local samp = require 'lib.samp.events'
local vkeys = require 'vkeys'
local flood = false
function main() --this function will start when script load
while not isSampAvailable() do wait(0) end --wait for samp load
sampRegisterChatCommand('flood', cmd)
while true do
wait(0)
if flood then
setVirtualKeyDown(VK_MENU, true)
wait(30)
setVirtualKeyDown(VK_MENU,false)
wait(50)
setVirtualKeyDown(VK_RETURN, true)
wait(30)
setVirtualKeyDown(VK_RETURN, false
end
end
end
function cmd()
flood = not flood
end