Jump to content

Problema con teleport


eldelahoz

Recommended Posts

Hola lo que pasa es que no ce mucho de script asi que digamos y no ce se que fue lo que hise mal aca

Teleport1 = createMarker ( 807.5, 841.70001220703, 8.8000001907349, "corona", 10, 0, 0, 0, 0, getRootElement() ) 
Teleport2 = createMarker ( 631.3056640625, 833.025390625, 791.348449707034, "corona", 10, 0, 255, 255, 255, getRootElement() ) 
Teleport3 = createMarker ( 654.49279785156, 817.01092529297, 772.59997558594, "corona", 1, 60, 255, 0, 255, getRootElement() ) 
  
function MarkerHit ( hitElement ) 
            local vehicle = getPedOccupiedVehicle ( hitElement ) 
            if vehicle or not vehicle then 
            local skin = getPlayerSkin ( hitElement ) 
            if skin == 100 then 
            local teleportElement = ( vehicle and vehicle or hitElement ) 
            if ( source == Teleport1 ) then 
                setElementPosition ( teleportElement, 635.82458496094, 922.57470703125, 772.52844238281 ) 
                setElementRotation ( teleportElement, 0, 0, 0 ) 
            elseif ( source == Teleport2 ) then 
                setElementPosition ( teleportElement, 631.3056640625, 833.025390625, 39.091259002686 ) 
                setElementRotation ( teleportElement, 0, 0, 0 ) 
            elseif ( source == Teleport3 ) then 
                setElementPosition ( teleportElement, 822.73046875, 909.7177734375, 13.3515625 ) 
                setElementRotation ( teleportElement, 0, 0, 0 ) 
            end 
        end 
addEventHandler ( "onMarkerHit", root, MarkerHit ) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...