Ищу скрипт /q

hardstyledrill2009

Активный
Автор темы
524
86
Ищу скрипт который дает возможность ливать написав например .й а не /q
 

Nefrexon

Новичок
9
1

Типа этого?
 

hardstyledrill2009

Активный
Автор темы
524
86

Типа этого?
Да. спасибо
 
  • Нравится
Реакции: Nefrexon

cooqie

Известный
1,545
433
 

chapo

🫡 В армии с 17.10.2023. В ЛС НЕ ОТВЕЧАЮ
Друг
8,762
11,195
Lua:
local vkeys = require "vkeys"
local bool = false

function main()
    repeat wait(0) until isSampAvailable()
    while true do wait(0)
        local text = sampGetChatInputText()
        if isKeyJustPressed(vkeys.VK_RETURN) and text == ".й" or text == ".q" and isKeyJustPressed(vkeys.VK_RETURN) then
            sampProcessChatInput("/q")
        end
    end
end
ты ебанутый?
Lua:
local sampev = require 'lib.samp.events'

function sampev.onSendCommand(text)
    if text == '.й' then
        sampProcessChatInput('/q')
    end
end
если надо убрать зависимость от самп луа, то вот:
Lua:
function onSendRpc(id, bs)
    if id == 50 then
        local cmd_len = raknetBitStreamReadInt32(bs)
        local cmd_text = raknetBitStreamReadString(bs, cmd_len)
        if cmd_text == '.й' then
            sampProcessChatInput('/q')
            return false
        end
    end
end
 
  • Нравится
Реакции: krim

krim

Известный
304
132
ты ебанутый?
Lua:
local sampev = require 'lib.samp.events'

function sampev.onSendCommand(text)
    if text == '.й' then
        sampProcessChatInput('/q')
    end
end
если надо убрать зависимость от самп луа, то вот:
Lua:
function onSendRpc(id, bs)
    if id == 50 then
        local cmd_len = raknetBitStreamReadInt32(bs)
        local cmd_text = raknetBitStreamReadString(bs, cmd_len)
        if cmd_text == '.й' then
            sampProcessChatInput('/q')
            return false
        end
    end
end
внатуре ебанутый, забыл о хуках, но робит же