Michael_Sund Posted August 7, 2008 Posted August 7, 2008 How can i use this function http://development.mtasa.com/index.php?title=SetElementPosition To make a command like "/lossantos" to teleport to los santos or something? i really need this plz help!!
Gamesnert Posted August 7, 2008 Posted August 7, 2008 I'll make it a bit difficult, but less difficult then it may be for you now. Which means I'll make it less difficult. Difficult huh? ^^ Anyway, "/lossantos" command isn't that hard. function gotoLosSantos(...) setElementPosition(player,<x coordinate>,<etc>) end addCommandHandler(...) You now have a semi-complete basic script. Go to the addCommandHandler page on the wiki to find out how to finish it.
DakiLLa Posted August 8, 2008 Posted August 8, 2008 try this: addCommandHandler( "ls", function( player ) setElementPosition( player, CoordinateX, CoordinateY, CoordinateZ ) outputChatBox( "You are now in Los Santos", player, 0, 255, 0 ) end )
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now