бинд

lovely11

Участник
Автор темы
42
3
ищу бинд прорисовки (fogdist 0 и fogdist 750) или биндер для прорисовки на аризонку рп
 

minxty

Известный
920
795
Lua:
require 'lib.moonloader'
function main()
    while not isSampAvailable() do wait(0) end
    while true do wait(0)
        if wasKeyPressed(VK_Z) and not sampIsCursorActive() then
            sampProcessChatInput('/fogdist 0')
        end
        if wasKeyPressed(VK_X) and not sampIsCursorActive() then
            sampProcessChatInput('/fogdist 750')
        end
    end
end
по дефолту Z - fogdist 0
X - fogdist 750
хочешь поменять - VK_Z, VK_X меняй на то что хочешь
 
  • Нравится
Реакции: atcept

lovely11

Участник
Автор темы
42
3
Lua:
require 'lib.moonloader'
function main()
    while not isSampAvailable() do wait(0) end
    while true do wait(0)
        if wasKeyPressed(VK_Z) and not sampIsCursorActive() then
            sampProcessChatInput('/fogdist 0')
        end
        if wasKeyPressed(VK_X) and not sampIsCursorActive() then
            sampProcessChatInput('/fogdist 750')
        end
    end
end
по дефолту Z - fogdist 0
X - fogdist 750
хочешь поменять - VK_Z, VK_X меняй на то что хочешь
можешь еще на единичку сделать команду на /antipar
 

hol0s

Активный
165
25
можешь еще на единичку сделать команду на /antipar
бро ты не можешь сделать то что елементарно?

можешь еще на единичку сделать команду на /antipar
Lua:
require("lib.moonloader")
function main()
    while not isSampAvailable() do wait(0) end
    while true do wait(0)
        if wasKeyPressed(VK_Z) and not sampIsCursorActive() then
            sampProcessChatInput('/fogdist 0')
        end
        if wasKeyPressed(VK_X) and not sampIsCursorActive() then
            sampProcessChatInput('/fogdist 750')
        end
        if wasKeyPressed(VK_1) and not sampIsCursorActive() then
            sampProcessChatInput('/antipar')
        end
    end
end
 

Wycmpblu

Известный
143
31
Lua:
require 'lib.moonloader'
local binds = {
        [VK_1] = '/antipar',
        [VK_2] = '/fogdist 0',
        [VK_3] = '/fogdist 750'
    }

function main()
    while not isSampAvailable() do wait(0) end
    while true do wait(0)
        for k,v in pairs(binds) do
            if wasKeyPressed(k) and not sampIsCursorActive() then
                sampProcessChatInput(v)
            end
        end
    end
end

Писал с телефона. Хз, вроде должно работать.
 
  • Нравится
Реакции: MLycoris