eldelahoz Posted February 21, 2013 Posted February 21, 2013 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 )
NodZen Posted February 21, 2013 Posted February 21, 2013 Talvez sea este el problema. addEventHandler( "onMarkerHit",Teleport1, MarkerHit ) ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Castillo Posted February 21, 2013 Posted February 21, 2013 No, eso no tiene nada que ver. @eldelahoz: Te falta un 'end' para cerrar este 'if': if vehicle or not vehicle then el cual no tiene ningun sentido, borralo y listo. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted February 22, 2013 Posted February 22, 2013 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts