Jump to content

help me with this script :D


iFoReX

Recommended Posts

Posted

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

430x73_FFFFFF_FF9900_000000_000000.png
Posted

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.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Did you even read what I said? you must move the colshape.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Solid I done this xD 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

430x73_FFFFFF_FF9900_000000_000000.png
Posted

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.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

start Runcode, /crun setDevelopmentMode(true), /showcol

Please do not PM me with scripting related question nor support, use the forums instead.

Posted

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

430x73_FFFFFF_FF9900_000000_000000.png
Posted

1° /crun setDevelopmentMode(true)

after /showcol

Please do not PM me with scripting related question nor support, use the forums instead.

Posted

It worked here, I hit the colshape, and the elevator started.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...