Такой flooder alt+enter будет работать?

Goldens

Новичок
Автор темы
14
4
Версия SA-MP
  1. 0.3.7 (R1)
  2. 0.3.7-R2
  3. 0.3.7-R3
  4. 0.3.7-R4
  5. 0.3DL
local toggle = false

function main()

while true do

wait(150)

if wasKeyPressed(0x72) then -- F3

toggle = not toggle

end

if toggle then

setVirtualKeyDown(0x12, true)

wait(10)

setVirtualKeyDown(0x12, false)

if toggle then

setVirtualKeyDown(0x0D, true)

wait(10)

setVirtualKeyDown(0x0D, false)

end

end

end
 

scroll.

23.05.2024 💂‍♀️
Проверенный
4,010
1,247
На будущее для кода существует такая кнопочка (чёрным квадратом отметил)
1655050862461.png
 

scroll.

23.05.2024 💂‍♀️
Проверенный
4,010
1,247
Будет работать флудер?
Нет если нужен ALT + ENTER держи
Код:
require 'lib.moonloader'

local enable = false

function main()
    if not isSampfuncsLoaded() or not isSampLoaded() then return end
    while not isSampAvailable() do wait(100) end

    sampRegisterChatCommand("autoalt", function()
        if enable == false then
            enable = true
            sampAddChatMessage("[Auto Alt]: {FFFFFF}Активирован. Нажмите {E5336B}Правый CTRL {FFFFFF}чтобы остановить!", 0xE5336B)
        end
    end)

    while true do
        wait(0)
        if enable == true and not sampIsChatInputActive() and not sampIsDialogActive() then
            setVirtualKeyDown(18, true)
            wait(100)
            setVirtualKeyDown(18, false)
            wait(500)
            setVirtualKeyDown(13, true)
            wait(100)
            setVirtualKeyDown(13, false)
            if isKeyJustPressed(VK_RCONTROL) then
                sampAddChatMessage("[Auto Alt]: {FFFFFF}Деактивирован!", 0xE5336B)
                enable = false
            end
        end
    end
end
 
  • Нравится
Реакции: ntdll, Goldens и ARMOR