Авто пробив по ид (arz)

zakatov

zkt-team
Автор темы
Проверенный
1,698
530
Чтобы я писал например /pid 12 и он пробивал, /id 12, /cl 12, tab 12
 
Решение
Чтобы я писал например /pid 12 и он пробивал, /id 12, /cl 12, tab 12
Lua:
require "lib.moonloader"

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end

    sampRegisterChatCommand("pid", function(arg)
        lua_thread.create(function()
            local id = string.match(arg, "(%d+)")
            if id == "" or id == nil then
                sampAddChatMessage("Вы не ввели id игрока!", -1)
            else
                  sampSendChat("/id " .. id)
                  wait(1000)
                  sampSendChat("/cl " .. id)
            end
        end)
    end)

    while true do
        wait(0)
    end
end
С табом не ебу как сделать

ARMOR

kjor32 is legend
Модератор
4,847
6,101
Чтобы я писал например /pid 12 и он пробивал, /id 12, /cl 12, tab 12
Lua:
require "lib.moonloader"

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end

    sampRegisterChatCommand("pid", function(arg)
        lua_thread.create(function()
            local id = string.match(arg, "(%d+)")
            if id == "" or id == nil then
                sampAddChatMessage("Вы не ввели id игрока!", -1)
            else
                  sampSendChat("/id " .. id)
                  wait(1000)
                  sampSendChat("/cl " .. id)
            end
        end)
    end)

    while true do
        wait(0)
    end
end
С табом не ебу как сделать
 

RainRus80

Известный
478
141
Чтобы я писал например /pid 12 и он пробивал, /id 12, /cl 12, tab 12
теперь когда пишешь id там пишется что игрок лаунчера или нет, cl нужен если ты жб на человека который с микро что-то говорит по сути и все