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

NikitaSokol

Активный
Автор темы
206
63
Версия MoonLoader
.026-beta
Как получить координаты чекпоинта на адвансе
Screenshot_66.png
 

azimoff

azimoff
Проверенный
90
70
Вот небольшой пример:

Lua:
local ev = require 'lib.samp.events'

function kall()
if lastpos ~= nil then
setCharCoordinates(playerPed, lastpos.x, lastpos.y, lastpos.z)
lastpos = nil
else
sampAddChatMessage("{ff0000}нету метки", -1)
end
end

function ev.onSetMapIcon(iconId, position, type, color, style)
    if iconId == 98 then
    lastpos = position
    end
end
 
Последнее редактирование: