Помогите

Статус
В этой теме нельзя размещать новые ответы.

Terratomorf

Известный
Автор темы
315
58
Вот у меня есть код и он должен делать так я жму "K" ион должен начать флудить enter и когда появится диалог остановиться
Код:
function main()
while true do
wait(0)
if isKeyJustPressed(VK_K) then
while true do
wait(0)
if not sampIsDialogActive() then
setGameKeyState(15, 255)
else
break
end
end
end
end
end
 

Frapsy

Известный
Проверенный
393
226
В чем прикол было писать посты выше - хер знает, тем не менее, рабочий вот.

Lua:
script_name("huina")
script_authors("pidor")
script_version_number(1)

require "lib.moonloader"

local activeItsHuina = false
function main()
    if not isSampLoaded() then return end
    while not isSampAvailable() do wait (100) end
  
    while true do
        wait(0)
        if wasKeyPressed(0x4B) then
            activeItsHuina = not activeItsHuina
            printStringNow("hop", 1000)
        end
        if activeItsHuina then
            if not sampIsDialogActive() then
                printStringNow("keyflood", 1)
                setGameKeyState(15, 255)
            end
        end
    end
end
 
Последнее редактирование:
Статус
В этой теме нельзя размещать новые ответы.