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

Cheater?

Активный
Автор темы
137
47
Дайте луашник или клео для флуда клавишей. Мне надо ЛКМ(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,080
12,069
/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?

Активный
Автор темы
137
47
/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,080
12,069
не роботает,удары не идут
я забыл одну строку

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