Jump to content

help me with this script :D


iFoReX

Recommended Posts

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 ?

Link to comment

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 ) 

Link to comment

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