local active = false
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('kfl', cmd)
while true do
wait(0)
if active then
setVirtualKeyDown(17, true)
setVirtualKeyDown(17, false)
end
end
end
function cmd()
if active then
sampAddChatMessage('KeyFlood: Выключен', -1)
active = false
else
sampAddChatMessage('KeyFlood: Включен', -1)
active = true
end
end