/tie /lead /bag в одной команде [ARZ]

kokokaaaaa

Известный
Автор темы
4
0
Ищу скрипт под мафии, которым можно одной командой связать, накинуть мешок и повести за собой (чё то типа /vse 228)
 

Vintik

Через тернии к звёздам
Проверенный
1,494
957
Lua:
function all(arg)
    local id = tonumber(arg)
    if id ~= nil then
        sampSendChat('/tie ' .. arg)
        wait(500)
        sampSendChat('/bag ' .. arg)
        wait(500)
        sampSendChat('/lead ' .. arg)
    else
        sampSendChat('Enter: /vse [player ID]', -1)
    end
end

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand("vse", lua_thread.create(all))
    wait(-1)
end