Phoenixx Posted October 20, 2013 Share Posted October 20, 2013 I want to make base , and on it i want to put some gate that move on password ( something like /opengate and base opens) . Somebody HELP ?? ~~Help me the easyest way ;D~~ Link to comment
Desaster Posted October 20, 2013 Share Posted October 20, 2013 function createTheGate () gate1 = createObject ( Object ID, x, y, z ) gate2 = createObject ( Objecy ID, x, y, z ) --use rotx roty rotz after the z ex createObject( 986, 234, 11, 1, 90, 180, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function openMyGate ( ) moveObject ( gate1, Object ID, x, y, z ) moveObject ( gate2, Object ID, x, y, z ) setTimer ( movingMyGateBack, seconds, 1 ) end addCommandHandler("password",openMyGate) function movingMyGateBack () moveObject ( gate1, Object ID, x, y, z ) moveObject ( gate2, Object ID, x, y, z ) end Link to comment
Phoenixx Posted October 20, 2013 Author Share Posted October 20, 2013 What should I do with these ? Link to comment
Desaster Posted October 20, 2013 Share Posted October 20, 2013 replace the Object id with your object ID and replace x, y, z with your position Link to comment
Phoenixx Posted October 20, 2013 Author Share Posted October 20, 2013 replace object ID and x,y,z ? - Ok for that . i understand that But when I create map using MTA map editor , where does the map save?? +I have to make meta.xml and other s****... Link to comment
Phoenixx Posted October 20, 2013 Author Share Posted October 20, 2013 Look i already have downloaded map , so I want create map like that . Content of Map: Source is in zip, inside it : corparation.map; client.lua : function createThelift () mylift = createObject ( 3095, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createThelift ) function openMylift () moveObject ( mylift, 8000, -2027.8459, 157.1302, 32.1, 0, 0, 0 ) end addCommandHandler("liftgodown555",openMylift) function movingMyliftBack () moveObject ( mylift, 8000, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) end addCommandHandler("liftgoup555",movingMyliftBack) function createTheGate1 () myGate1 = createObject ( 980, -2016.75, 176.81, 29.47, 0, 0, 90 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate1 ) function openMyGate1 () moveObject ( myGate1, 3000, -2016.75, 165, 29.47, 0, 0, 0 ) end addCommandHandler("openbase555",openMyGate1) function movingMyGateBack1 () moveObject ( myGate1, 3000, -2016.75, 176.81, 29.47, 0, 0, 0 ) end addCommandHandler("closebase555",movingMyGateBack1) AND META.XML Link to comment
MTA Team jhxp Posted October 21, 2013 MTA Team Share Posted October 21, 2013 Please read this topic first: https://forum.multitheftauto.com/viewtopic.php?f=91&t=47897 Link to comment
Recommended Posts