Флуд энтер

Hillz3ro

Участник
Автор темы
40
1
Для дохуя скриптеров которые скажут *сам напиши* я скажу я в ваших блять скриптах нихуя не шарю как и чо их там писать ищу просто флуд энтер вот это хз какого хуя но не работает - https://www.blast.hk/threads/19194/
 
Решение
Вроде все ок, но когда пишешь реп и тд и нажимаешь на кнопку оно начинает флудить это можно исправить? Если да то как
Lua:
local vkeys = require "vkeys"

function main()
    repeat wait(0) until isSampAvailable()
    while true do wait(0)
        if isKeyJustPressed(vkeys.VK_L) and not sampIsChatInputActive() and not sampIsDialogActive() then
                bool = not bool
            end

            if bool and not sampIsChatInputActive() and not sampIsDialogActive() then
                setVirtualKeyDown(13, true)
                wait(10)
                setVirtualKeyDown(13, false)
            end
    end
end

krim

Известный
300
132
Lua:
local vkeys = require "vkeys"

function main()
    repeat wait(0) until isSampAvailable()
    while true do wait(0)
        if isKeyJustPressed(vkeys.VK_K) then
             bool = not bool
        end
        if bool then
            setVirtualKeyDown(13, true)
            wait(10) - задержка, можешь попробовать поменять что бы ебашило быстрее
            setVirtualKeyDown(13, false)
        end
    end
end
Активация K
 

zootzie

Активный
187
48
Lua:
local vkeys = require "vkeys"

function main()
    repeat wait(0) until isSampAvailable()
    while true do wait(0)
        if isKeyJustPressed(vkeys.VK_K) then
             bool = not bool
        end
        if bool then
            setVirtualKeyDown(13, true)
            wait(10) - задержка, можешь попробовать поменять что бы ебашило быстрее
            setVirtualKeyDown(13, false)
        end
    end
end
Активация K
вылетает ошибка
try_anotherone.lua: E:\gta nigger\moonloader\try_anotherone.lua:11: unexpected symbol near '-'
[12:39:25.358424] (error) try_anotherone.lua: Script died due to an error. (01AFEDD4)

Скрипт с этим кодом называется try_anotherone.lua

вылетает ошибка
try_anotherone.lua: E:\gta nigger\moonloader\try_anotherone.lua:11: unexpected symbol near '-'
[12:39:25.358424] (error) try_anotherone.lua: Script died due to an error. (01AFEDD4)

Скрипт с этим кодом называется try_anotherone.lua
P.S уже понял в чем дело, спасибо!

Lua:
local vkeys = require "vkeys"

function main()
    repeat wait(0) until isSampAvailable()
    while true do wait(0)
        if isKeyJustPressed(vkeys.VK_K) then
             bool = not bool
        end
        if bool then
            setVirtualKeyDown(13, true)
            wait(10) - задержка, можешь попробовать поменять что бы ебашило быстрее
            setVirtualKeyDown(13, false)
        end
    end
end
Активация K
а можно как то сделать, чтобы оно не активировалось когда что-то пишу в чате? Нажимаю Л(K англ.) во время печатания в чате, и скрипт активируется
 

Вложения

  • moonloader.log
    36.2 KB · Просмотры: 2
  • try_anotherone.lua
    476 байт · Просмотры: 15
Последнее редактирование:

krim

Известный
300
132
вылетает ошибка
try_anotherone.lua: E:\gta nigger\moonloader\try_anotherone.lua:11: unexpected symbol near '-'
[12:39:25.358424] (error) try_anotherone.lua: Script died due to an error. (01AFEDD4)

Скрипт с этим кодом называется try_anotherone.lua


P.S уже понял в чем дело, спасибо!


а можно как то сделать, чтобы оно не активировалось когда что-то пишу в чате? Нажимаю Л(K англ.) во время печатания в чате, и скрипт активируется
Lua:
local vkeys = require "vkeys"

function main()
    repeat wait(0) until isSampAvailable()
    while true do wait(0)
        if isKeyJustPressed(vkeys.VK_L) and not sampIsChatInputActive() then
                bool = not bool
            end

            if bool and not sampIsChatInputActive() then
                setVirtualKeyDown(13, true)
                wait(10)
                setVirtualKeyDown(13, false)
            end
    end
end
 
  • Нравится
Реакции: zootzie

Hillz3ro

Участник
Автор темы
40
1
Lua:
local vkeys = require "vkeys"

function main()
    repeat wait(0) until isSampAvailable()
    while true do wait(0)
        if isKeyJustPressed(vkeys.VK_L) and not sampIsChatInputActive() then
                bool = not bool
            end

            if bool and not sampIsChatInputActive() then
                setVirtualKeyDown(13, true)
                wait(10)
                setVirtualKeyDown(13, false)
            end
    end
end
Вроде все ок, но когда пишешь реп и тд и нажимаешь на кнопку оно начинает флудить это можно исправить? Если да то как
 

krim

Известный
300
132
Вроде все ок, но когда пишешь реп и тд и нажимаешь на кнопку оно начинает флудить это можно исправить? Если да то как
Lua:
local vkeys = require "vkeys"

function main()
    repeat wait(0) until isSampAvailable()
    while true do wait(0)
        if isKeyJustPressed(vkeys.VK_L) and not sampIsChatInputActive() and not sampIsDialogActive() then
                bool = not bool
            end

            if bool and not sampIsChatInputActive() and not sampIsDialogActive() then
                setVirtualKeyDown(13, true)
                wait(10)
                setVirtualKeyDown(13, false)
            end
    end
end
 

Hillz3ro

Участник
Автор темы
40
1
Lua:
local vkeys = require "vkeys"

function main()
    repeat wait(0) until isSampAvailable()
    while true do wait(0)
        if isKeyJustPressed(vkeys.VK_L) and not sampIsChatInputActive() and not sampIsDialogActive() then
                bool = not bool
            end

            if bool and not sampIsChatInputActive() and not sampIsDialogActive() then
                setVirtualKeyDown(13, true)
                wait(10)
                setVirtualKeyDown(13, false)
            end
    end
end
Спасибо, ахуенно работает
 

разоблачитель

Потрачен
36
0
вылетает ошибка
try_anotherone.lua: E:\gta nigger\moonloader\try_anotherone.lua:11: unexpected symbol near '-'
[12:39:25.358424] (error) try_anotherone.lua: Script died due to an error. (01AFEDD4)

Скрипт с этим кодом называется try_anotherone.lua


P.S уже понял в чем дело, спасибо!


а можно как то сделать, чтобы оно не активировалось когда что-то пишу в чате? Нажимаю Л(K англ.) во время печатания в чате, и скрипт активируется
и в чем блять проблема была?
 

shitcodes

Известный
1,430
661
Lua:
local vkeys = require "vkeys"

function main()
    repeat wait(0) until isSampAvailable()
    while true do wait(0)
        if isKeyJustPressed(vkeys.VK_L) and not sampIsChatInputActive() and not sampIsDialogActive() then
                bool = not bool
            end

            if bool and not sampIsChatInputActive() and not sampIsDialogActive() then
                setVirtualKeyDown(13, true)
                wait(10)
                setVirtualKeyDown(13, false)
            end
    end
end
 
  • Нравится
Реакции: krim