stormchaser206 Posted January 7, 2012 Share Posted January 7, 2012 Hello, I am creating a teleporting system with the following areas: -LS Airport -Grove Street -Easter Bay Airport -San Fierro Docks -Area 51 -LV Airport -LV South -Dillimore -Angel Pine. What would be a meta.xml script and other files? Link to comment
12p Posted January 7, 2012 Share Posted January 7, 2012 createMarker addEventHandler ==> onMarkerHit setElementPosition Also you may want to make 3d texts to tell the player where do the markers teleport to. Use this for that: https://community.multitheftauto.com/index.php?p= ... ls&id=3090 Link to comment
stormchaser206 Posted January 7, 2012 Author Share Posted January 7, 2012 (edited) How would we add the second marker, if that wasn't there, it wouldnt work. ALSO NOTE: I still cant figure out why the resources wont work. Edited January 7, 2012 by Guest Link to comment
12p Posted January 7, 2012 Share Posted January 7, 2012 Make sure the second marker is not in the same position as first markers teleports to. Link to comment
Xeno Posted January 7, 2012 Share Posted January 7, 2012 Post your script, we can help you. Link to comment
stormchaser206 Posted January 7, 2012 Author Share Posted January 7, 2012 What do you mean????? Im not good at scripting, i just started today. Link to comment
stormchaser206 Posted January 7, 2012 Author Share Posted January 7, 2012 And, i havent even made the meta.xml file yet Link to comment
Xeno Posted January 7, 2012 Share Posted January 7, 2012 If you don't know how to make a meta, and you started scripting today, read this: https://wiki.multitheftauto.com/wiki/Scripting_Introduction Link to comment
JR10 Posted January 7, 2012 Share Posted January 7, 2012 Why the hurry, learn first then start making scripts. Link to comment
stormchaser206 Posted January 7, 2012 Author Share Posted January 7, 2012 I can't remember all this stuff, to much info, not enough websites. Link to comment
myonlake Posted January 7, 2012 Share Posted January 7, 2012 Why people always give up. https://wiki.multitheftauto.com/wiki/Scr ... troduction <meta> <script src="server.lua" type="server"></script> </meta> Link to comment
12p Posted January 7, 2012 Share Posted January 7, 2012 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
ishinam Posted January 9, 2012 Share Posted January 9, 2012 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
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