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

zakatov

Cogito ergo sum
Автор темы
Проверенный
1,971
728
Чтобы я писал например /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

Я будто попал в другое измерение
Модератор
5,043
7,179
Чтобы я писал например /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

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