Jump to content

Need help


Recommended Posts

Posted

Guys i'm new in scripting i just started yesterday , i need help ... i made a marker that teleports me to LS Gym when i go to the marker nothing happen, please i need help really fast , here is my code :

Marker = createMarker(1060.0223388672,1237.9868164063,12.827476501465, 'arrow', 2, 0, 0, 255, 255) 
 function Teleport(player) 
setElementInterior(5,772.36291503906,-4.5911450386047,1000.7290649414) 
end 
addEventHandler( "onMarkerHit", Marker, Teleport ) 

Posted

That's because you forgot to fill the element at setElementInterior.

Marker = createMarker ( 1060.0223388672, 1237.9868164063, 12.827476501465, 'arrow', 2, 0, 0, 255, 255 ) 
  
function Teleport ( player ) 
    setElementInterior ( player, 5, 772.36291503906, -4.5911450386047, 1000.7290649414 ) 
end 
addEventHandler ( "onMarkerHit", Marker, Teleport ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

It works here, post your meta.xml content.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Well, then lower it.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

You must lower the Z position, here:

Marker = createMarker ( 1060.0223388672, 1237.9868164063, 12.827476501465, 'arrow', 2, 0, 0, 255, 255 ) 

This is the Z position:

12.827476501465 

You can try setting it to 11.82.

Marker = createMarker ( 1060.0223388672, 1237.9868164063, 11.82, 'arrow', 2, 0, 0, 255, 255 ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

If you don't add an exit marker, then you won't be able to exit, obviously.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

You're welcome.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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