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

zakatov

Если 1в#н за твоей спиной - газ в пол братишка
Автор темы
Проверенный
1,985
754
Чтобы я писал например /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,068
7,374
Чтобы я писал например /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

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