Takerd Posted March 5, 2015 Posted March 5, 2015 Hi everyone! I have one scripth wich is for open doors (The object moves and go up) with commands. So, I need to add other door to this script, but I dont know how to do it (The other doors were added by a friend). The object which I want to move / go up using a command is: This is the script: p2 = createObject ( 968, 93.75, 1188.09, 18.4, 0, 270, 0) function poli1 ( thePlayer ) if exports.factions:isPlayerInFaction ( thePlayer, 1) then if (getElementData(p2, "abierta") == false) then moveObject ( p2, 2000, 93.75, 1188.09, 18.4, 0, 85, 0, "InOutQuad" ) setElementData(p2, "abierta", true) setTimer ( function ( ) moveObject ( p2, 2000, 93.75, 1188.09, 18.4, 0, -85, 0, "OutInQuad" ) setTimer(function() setElementData(p2, "abierta", false) end, 2000, 1) setTimer ( function () end, 10000, 1) end ,6000,1 ) end end end addCommandHandler("policia",poli1) depozitouo = createObject ( 980, 142.89999389648, 1099.1999511719, 15.39999961853, 0, 0, 91 ) function dep ( thePlayer ) if exports.factions:isPlayerInFaction ( thePlayer, 1) then moveObject ( depozitouo, 2000, 142.89999389648, 1099.1999511719, 9.83, 0, 0, 0 ) setTimer ( function ( ) moveObject ( depozitouo, 2000, 142.89999389648, 1099.1999511719, 15.39999961853, 0, 0, 0 ) setTimer ( function () x, y, z = getElementPosition(depozitouo) if y ~= 1099.1999511719 then setElementPosition (depozitouo, 142.89999389648, 1099.1999511719, 15.39999961853) end end, 10000, 1) end ,6000,1 ) end end addCommandHandler("deposito",dep) function garajemeca(thePlayer) if exports.factions:isPlayerInFaction ( thePlayer, 3) then if (isGarageOpen(41)) then setGarageOpen ( 41, false ) exports.chat:me( thePlayer, "presiona el botón del mando y cierra el portón del taller." ) else setGarageOpen ( 41, true ) exports.chat:me( thePlayer, "presiona el botón del mando y abre el portón del taller." ) end else outputChatBox("No tienes el mando del portón del taller.", thePlayer, 255, 0, 0) end end addCommandHandler("mecag", garajemeca) How can I move the object for go up? thanks for your time! Argentina Roleplay Discord: discord.gg/argenrp BIG Roleplay Discord: discord.gg/bigrp
Enargy, Posted March 6, 2015 Posted March 6, 2015 If you did in another topic with your respective questions... why did you copy the same thing about this https://forum.multitheftauto.com/viewtopic.php?f=122&t=85763&p=776781#p776781 PD:things are learned to make the attempt but not others do it for you - Inactivo.
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