Taalasmaa Posted June 7, 2009 Share Posted June 7, 2009 Ok, so how can I do moving port to area51 like when you type /open port will open.. Link to comment
SpInKsTaR Posted June 7, 2009 Share Posted June 7, 2009 spawnPlayer http://development.mtasa.com/index.php?title=SpawnPlayer Link to comment
Taalasmaa Posted June 7, 2009 Author Share Posted June 7, 2009 spawnPlayerhttp://development.mtasa.com/index.php?title=SpawnPlayer wtf are you talking about... Spawnplayer??? I mean how can I make GATE which open with command.. like /open there is what I tried, but it didnt work at all allObjects = getElementsByType ( "object" ) for key, theObject in ipairs ( allObjects ) do local 133.091675, 1941.873901, 19.320068 = getElementPosition ( theObject ) --get the origanal position local 18.950716 = 19.320068 + 100 -- make a new z position moveObject ( theObject, 10000, 133.091675, 1941.873901, 18.950716 ) --move the object to this position in 10 seconds. end addCommandHandler("open", moveObject) Link to comment
knash94 Posted June 7, 2009 Share Posted June 7, 2009 function onstartup () object = createObject ( some id, x, y, z, rx, ry, rz ) end addEventHandler ( "onResourceStart", getRootElement(), onstartup ) function move () moveObject ( object, time to move, x, y, z ) end addCommandHandler("open", move) That should work -- And put the full co-ordinate's for move-object - Or you could use getElementPosition Link to comment
50p Posted June 7, 2009 Share Posted June 7, 2009 spawnPlayerhttp://development.mtasa.com/index.php?title=SpawnPlayer wtf are you talking about... Spawnplayer??? I mean how can I make GATE which open with command.. like /open there is what I tried, but it didnt work at all allObjects = getElementsByType ( "object" ) for key, theObject in ipairs ( allObjects ) do local 133.091675, 1941.873901, 19.320068 = getElementPosition ( theObject ) --get the origanal position local 18.950716 = 19.320068 + 100 -- make a new z position moveObject ( theObject, 10000, 133.091675, 1941.873901, 18.950716 ) --move the object to this position in 10 seconds. end addCommandHandler("open", moveObject) I hate liars! How am I supposed to believe that you made a "Car Shop" and needed GUI to spawn the car next to you?! I'm sorry but you won't get help from me anymore... Link to comment
Taalasmaa Posted June 7, 2009 Author Share Posted June 7, 2009 function onstartup () object = createObject ( some [b]id[/b], x, y, z, rx, ry, rz ) end addEventHandler ( "onResourceStart", getRootElement(), onstartup ) function move () moveObject ( object, time to move, x, y, z ) end addCommandHandler("open", move) That should work -- And put the full co-ordinate's for move-object - Or you could use getElementPosition There is that id, how can I find right id ? In gta there is 11k object id's.. How can I find right ? Edit: I hate liars! How am I supposed to believe that you made a "Car Shop" and needed GUI to spawn the car next to you?! I'm sorry but you won't get help from me anymore... Wtf are you talking about 50p? What am I lied now??? Stop spamming my topic if you dont help. Link to comment
knash94 Posted June 7, 2009 Share Posted June 7, 2009 Use an object browser.. I think some gates are around the 950-980 region Link to comment
50p Posted June 7, 2009 Share Posted June 7, 2009 Talasma, check this topic, your topic... https://forum.multitheftauto.com/viewtop ... 91&t=24665 Read what you said in your first post. Hello! I maked vehice shop for my server, but how can I spawn them? Help? I mean how can you make "panel" for example you push "r" and you get list for your vehicles and you can also spawn them.. Help? Thanks if somebody can help with this Who helped you the most? I don't help? I helped you a lot... because you stopped replying there, it probably means you finally got it working. OK fine, you "maked" vehicle shop... but when I look at this code: local 133.091675, 1941.873901, 19.320068 = getElementPosition ( theObject ) --get the origanal position local 18.950716 = 19.320068 + 100 -- make a new z position I don't really believe you made vehicle shop -_-' I lost lots of time helping you out in your previous topic and I see, I wasted that time badly. Anyway, good luck with scripting. local 9 = 4 + 5 Link to comment
knash94 Posted June 7, 2009 Share Posted June 7, 2009 Talasma, check this topic, your topic... https://forum.multitheftauto.com/viewtop ... 91&t=24665Read what you said in your first post. Hello! I maked vehice shop for my server, but how can I spawn them? Help? I mean how can you make "panel" for example you push "r" and you get list for your vehicles and you can also spawn them.. Help? Thanks if somebody can help with this Who helped you the most? I don't help? I helped you a lot... because you stopped replying there, it probably means you finally got it working. OK fine, you "maked" vehicle shop... but when I look at this code: local 133.091675, 1941.873901, 19.320068 = getElementPosition ( theObject ) --get the origanal position local 18.950716 = 19.320068 + 100 -- make a new z position I don't really believe you made vehicle shop -_-' I lost lots of time helping you out in your previous topic and I see, I wasted that time badly. Anyway, good luck with scripting. local 9 = 4 + 5 I agree. Wtf im a nooby scripter but i can still type in some co-ordinates and moveobject And i dont think i could make a vehicle shop so i dont thinkTalasma can 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