act = false
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage('[FloodH] loaded | /floodh', -1)
sampRegisterChatCommand("floodH", function() act = not act
sampAddChatMessage("[FloodH] flood "..(act and "enabled" or "disabled"), -1)
lua_thread.create(function()
if act then
while act do
delay = math.random(5000,10000)
wait(delay)
setVirtualKeyDown(VK_H, true)
wait(200)
setVirtualKeyDown(VK_H, false)
end
end
end)
end)
while true do
wait(0)
end
end