скрипт который при нажатии на mouse 4 пишет q в чат

Решение
qqq.lua:
script_name("qqq")
script_author("ебик1337")

require "lib.moonloader"
local keys = require "vkeys"

function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do wait(0)
        if not sampIsChatInputActive() and not sampIsDialogActive() and not sampIsScoreboardOpen() and not isSampfuncsConsoleActive() then
                if isKeyJustPressed(VK_XButton1) then
                sampSendChat("q")
            end              
        end
    end
end

nsevxy

Участник
38
14
qqq.lua:
script_name("qqq")
script_author("ебик1337")

require "lib.moonloader"
local keys = require "vkeys"

function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do wait(0)
        if not sampIsChatInputActive() and not sampIsDialogActive() and not sampIsScoreboardOpen() and not isSampfuncsConsoleActive() then
                if isKeyJustPressed(VK_XButton1) then
                sampSendChat("q")
            end              
        end
    end
end
 

Вложения

  • qqq.lua
    500 байт · Просмотры: 26