eldelahoz Posted March 7, 2013 Share Posted March 7, 2013 Hola como puedo hacer para que el teleport 4 funcione como si entro me voy y si vuelvo a entrar me voy otra ves pero solamente el teleport 4 Teleport1 = createMarker ( 807.5, 841.70001220703, 8.8000001907349, "corona", 10, 0, 0, 0, 0, getRootElement() ) Teleport2 = createMarker ( 674.73828125, 909.494140625, 791.348449707034, "corona", 10, 0, 255, 255, 255, getRootElement() ) Teleport3 = createMarker ( 720.26953125, 979.63317871094, 772.42846679688, "corona", 10, 60, 255, 0, 255, getRootElement() ) Teleport4 = createMarker ( 704.05859375, 909.419921875, 772.42846679688, "cylinder", 2, 0, 255, 50, 255, getRootElement() ) function MarkerHit ( hitElement ) local vehicle = getPedOccupiedVehicle ( hitElement ) local skin = getPlayerSkin ( hitElement ) if skin == 100 then local teleportElement = ( vehicle and vehicle or hitElement ) if ( source == Teleport1 ) then setElementPosition ( teleportElement, 741.3369140625, 798.7236328125, 775.64025878906 ) setElementRotation ( teleportElement, 0, 0, 0 ) elseif ( source == Teleport2 ) then setElementPosition ( teleportElement, 631.3056640625, 833.025390625, 50.091259002686 ) setElementRotation ( teleportElement, 0, 0, 0 ) elseif ( source == Teleport3 ) then setElementPosition ( teleportElement, 822.73046875, 909.7177734375, 13.3515625 ) setElementRotation ( teleportElement, 0, 0, 0 ) elseif ( source == Teleport4 ) then setElementPosition ( teleportElement, -1968.7958984375, -2428.5615234375, 30.625 ) setElementRotation ( teleportElement, 0, 0, 175.28131103516 ) end end end[/spoiler] addEventHandler ( "onMarkerHit", root, MarkerHit ) Link to comment
Recommended Posts