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 ?

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.

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 ) 

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 ',' 

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...