ty this :
local x = 685.62610
local y = -2692.39307
local z = 7.5
local x2 = 294.38306
local y2 = -167.90103
local z2 = 1.57813
local market = createMarker ( x, y, z, "cylinder", 1.5, 0, 0, 255, 170 )
local market2 = createMarker ( x2 + 2, y2, z2 - 1, "cylinder", 1.5, 0, 0, 255, 170 )
addEventHandler ( 'onClientMarkerHit', root,
function ( player )
local name = getPlayerName(player)
if name == "ElMota" then
if ( player == localPlayer and source == market ) then
setTimer(setElementPosition, 2000, 1, player, x2, y2, z2 );
elseif ( player == localPlayer and source == market2 ) then
setTimer(setElementPosition, 2000, 1, player, x + 2, y + 2, z + 2 );
end
end
end
)