local enable = false
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('mouseflood', function()
if not enable then
enable = true
sampAddChatMessage("Флуд мышкой запущет! Что-бы отключить флуд нажмите: {FF0000}ALT", -1)
else
sampAddChatMessage("Флуд уже запущен! Нажмите: {FF0000}ALT {FFFFFF}Что-бы отключить флуд", -1)
end
end)
while true do
wait(0)
if enable then
setVirtualKeyDown(1, true)
wait(50)
setVirtualKeyDown(1, false)
if wasKeyPressed(18) then
enable = false
sampAddChatMessage("Флуд мышкой отключен!", -1)
end
end
end
end