Jump to content

What would be a correct script for a teleporting system


Recommended Posts

stormchaser206 said:
I can't remember all this stuff, to much info, not enough websites.

OH CMON!!! IT'S NOT THAT HARD, FOR THE LOVE OF...!!!

Okay, okay... Calm down...

There is something called "perseverance", dunno if you EVER heard about it.

If you can't handle with the pressure of learning a simple scripting language like Lua, you should leave any attempt of developing anything related to computation in your life.

Otherwise, pay attention to the post above this one (myonlake's)

Link to comment
function teleport(player,command) -- make a function with name teleport 
       if command == "lsairport" then  -- go ahead only if lsairport is the command 
            setElementPosition(player,x,y,z)   -- teleport player to ls airport. 
      end 
end 
addCommandHandler("lsairport",teleport)           -- add a command to execute teleport function 
  

This is one way of doing it.Read mta wiki to add more features

Link to comment

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...