Jump to content

Help with script:)


LeooN15

Recommended Posts

Hi, i made another script, is a gate at LSPD i want that when an admin get close to the gate this will open but the gate move to other site please help me:)

                        LSgate2 = createObject ( 976, 1545.0999755859, -1630.5, 12.39999961853, 0, 0, 90) 
    col = createColRectangle(1542.9000244141, -1636.9000244141, 10.60000038147, 20) 
      
    addEventHandler ( "onColShapeHit", col, 
    function(hitElement) 
        if (getElementType (hitElement) == "player") then 
            if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(hitElement)), aclGetGroup ( "Admin" ) ) then 
                moveObject (LSgate2, 2500, 1545, -1623.5, 12.39999961853, 0, 0, 90)    -- here is where you enter the coordinatess of the new location of the object, 2200 = the speed of the movent. 
            end 
        end 
    end) 
      
     addEventHandler ( "onColShapeLeave", col, 
    function(hitElement) 
        if (getElementType (hitElement) == "player") then 
            if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(hitElement)), aclGetGroup ( "Admin" ) ) then 
                moveObject (LSgate2, 2500,1545.0999755859, -1623.5, 12.39999961853, 0, 0, 90) -- here is where you copy the coordinates of the orginal location of the object, 2951 = the timer of movent. 
            end 
        end 
    end) 
  

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