Как получить координаты маркера ?

cort

Активный
Автор темы
280
80
Как получить координаты маркера ?

У меня есть такой код, но он не рабочий

Lua:
if isPlayerPlaying(playerHandle) and enabled then
            local X, Y, Z = GetCoordinates()
            BeginToPoint(993.42, -982.28, 1389.88, 1, -255, true)
            SearchMarker(996.23, -997.63, 1398.88, 350, false)
            if MarkerPosX ~= 996.23 and MarkerPosY ~= -997.63 and MarkerPosZ ~= 1398.88 then
                BeginToPoint(992.97, -991.38, 1398.92, 1, -255, true)
                BeginToPoint(994.91, -998.83, 1398.88, 1, -255, true)
                BeginToPoint(996.23, -997.63, 1398.88, 1, -255, false)
                wait(14000)
                BeginToPoint(994.91, -998.83, 1398.88, 1, -255, true)
                BeginToPoint(992.97, -991.38, 1398.92, 1, -255, true)
                BeginToPoint(993.42, -982.28, 1389.88, 1, -255, true)
                BeginToPoint(995.97, -981.58, 1398.88, 1, -255, true)
                BeginToPoint(993.42, -982.28, 1389.88, 1, -255, true)
            end
            if MarkerPosX ~= 991.42 and MarkerPosY ~= -978.03 and MarkerPosZ ~= 1398.88 then
                BeginToPoint(991.42, -978.03, 1398.88, 1, -255, false)
                wait(14000)
                BeginToPoint(993.42, -982.28, 1389.88, 1, -255, true)
                BeginToPoint(995.97, -981.58, 1398.88, 1, -255, true)
                BeginToPoint(993.42, -982.28, 1389.88, 1, -255, true)
            end
            if MarkerPosX ~= 995.85 and MarkerPosY ~= -987.19 and MarkerPosZ ~= 1398.87 then
                BeginToPoint(995.85, -987.19, 1398.87, 1, -255, false)
                wait(14000)
                BeginToPoint(993.42, -982.28, 1389.88, 1, -255, true)
                BeginToPoint(995.97, -981.58, 1398.88, 1, -255, true)
                BeginToPoint(993.42, -982.28, 1389.88, 1, -255, true)
            end
        end