Моментальный тп по метке

  • Автор темы Удалённый пользователь 411156
  • Дата начала
У

Удалённый пользователь 411156

Гость
Автор темы
Моментальный тп по метке,как у админов,самый простой и без обходов
 

Limovs

Активный
125
31
 
У

Удалённый пользователь 411156

Гость
Автор темы
Lua:
function main()
    while not isSampAvailable() do wait(0) end
    while true do
        wait(0)
        result, x, y, z = getTargetBlipCoordinates()
        if result then setCharCoordinates(PLAYER_PED, x, y, z) end
    end
end
После того как тпхнулся - нельзя ходить...Как решить?
 

bottom_text

Известный
673
323
После того как тпхнулся - нельзя ходить...Как решить?
У Chapo телепорт в цикле, ты просто телепортировался бесконечно и не мог из-за этого двигаться, держи другой
Lua:
script_author('bottom_text')

function main()
    repeat wait(0) until isSampAvailable()
    sampRegisterChatCommand('tp', function()
        bool, x, y, z = getTargetBlipCoordinatesFixed()
        if bool then  
            setCharCoordinates(PLAYER_PED, x, y, z)
        end 
    end)
    wait(-1)
end 













 function getTargetBlipCoordinatesFixed()
    local bool, x, y, z = getTargetBlipCoordinates(); if not bool then return false end
    requestCollision(x, y); loadScene(x, y, z)
    local bool, x, y, z = getTargetBlipCoordinates()
    return bool, x, y, z
end