iFoReX Posted March 23, 2012 Posted March 23, 2012 My elevator Dont Up :c local objeto = createObject ( 2669, 1093.67834, -2704.56226, 8.48407, 0, 0, 0) local Col = createColCuboid ( 1093.67834, -2704.56226, 8.48407, 3, 8, 4 ) function Elevador(player) local accName = getAccountName ( getPlayerAccount ( player ) ) -- get his account name if isObjectInACLGroup ("user.".. accName, aclGetGroup ( "Everyone" ) ) then moveObject(objeto,5000 ,1093.67834, -2704.56226, 16) setTimer (moveObject, 5000, 1, objeto, 5000, 1093.67834, -2704.56226, 16) end end addEventHandler("onColShapeHit",Col,Elevador) What is bad ? elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted March 24, 2012 Posted March 24, 2012 It does work, the elevator goes up, I'm pretty sure your problem is that you created the colshape in a wrong place, is not in the elevator. Use: setDevelopmentMode to enable the command /showcol, this way you can see the colshapes. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
iFoReX Posted March 24, 2012 Author Posted March 24, 2012 ok solid but I want when the player is in the elevator the elevator up dont with commands u can help me please elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted March 24, 2012 Posted March 24, 2012 Did you even read what I said? you must move the colshape. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
iFoReX Posted March 24, 2012 Author Posted March 24, 2012 Solid I done this I think this is bad but I dont know how fix local objeto = createObject ( 2669, 1093.67834, -2704.56226, 8.48407, 0, 0, 0) local Col = createColCuboid ( 1093.67834, -2704.56226, 8.48407, 3, 8, 4 ) function Elevador(player) local accName = getAccountName ( getPlayerAccount ( player ) ) -- get his account name if isObjectInACLGroup ("user.".. accName, aclGetGroup ( "Everyone" ) ) then moveObject(objeto,5000 ,1093.67834, -2704.56226, 16) setTimer (moveObject, 5000, 1, objeto, 5000, 1093.67834, -2704.56226, 16) end end addEventHandler("onColShapeHit",Col,Elevador) function verCol() setDevelopmentMode(true) end end addCommandHandler("verc", verCol ) function noverCol() setDevelopmentMode(false) end end addCommandHandler("borrarc", noverCol ) elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted March 24, 2012 Posted March 24, 2012 The function I told you to use is not to fix your gates script, is to enable the /showcol command. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
iFoReX Posted March 24, 2012 Author Posted March 24, 2012 I typed /showcol but dont appear the Cols :c elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
DNL291 Posted March 24, 2012 Posted March 24, 2012 start Runcode, /crun setDevelopmentMode(true), /showcol Please do not PM me with scripting related question nor support, use the forums instead.
iFoReX Posted March 24, 2012 Author Posted March 24, 2012 I typed ur idea but tell me ERROR : start: Resource 'runcode' started Executing client-side command: setDevelopmentMode(true), /showcol Error: [string "setDevelopmentMode(true), /showcol"]:1: unexpected symbol near ',' elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
DNL291 Posted March 24, 2012 Posted March 24, 2012 1° /crun setDevelopmentMode(true) after /showcol Please do not PM me with scripting related question nor support, use the forums instead.
iFoReX Posted March 24, 2012 Author Posted March 24, 2012 the elevator dont up and now I fix the pos of my Col Help me please elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted March 24, 2012 Posted March 24, 2012 It worked here, I hit the colshape, and the elevator started. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
iFoReX Posted March 24, 2012 Author Posted March 24, 2012 dont up my elevator man :C elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
iFoReX Posted March 25, 2012 Author Posted March 25, 2012 My elevator Dont up what are bad ? :c elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
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