Флудер клавищей

Cheater?

Известный
Автор темы
141
50
Дайте луашник или клео для флуда клавишей. Мне надо ЛКМ(1) чтоб флудил или контр(17),буду благодарен
 
Решение
/kfl
Lua:
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

chapo

tg/inst: @moujeek
Всефорумный модератор
9,206
12,543
/kfl
Lua:
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
 
Последнее редактирование:
  • Нравится
Реакции: Cheater?

Cheater?

Известный
Автор темы
141
50
/kfl
Lua:
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
не роботает,удары не идут
 

chapo

tg/inst: @moujeek
Всефорумный модератор
9,206
12,543
не роботает,удары не идут
я забыл одну строку

Lua:
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)
        wait(50)
        setVirtualKeyDown(17, false)
        end
    end
end

function cmd()
    if active then
        sampAddChatMessage('KeyFlood: Выключен', -1)
        active = false
    else
        sampAddChatMessage('KeyFlood: Включен', -1)
        active = true
    end
end