Jump to content

can anyone help me plz :)


ramzi

Recommended Posts

its from anothr topic just replace those coordinates.

if AdminGate then  destroyElement ( AdminGate ) end 
local AdminGate = createObject ( 971, -504.7998046875, 2592.599609375, 56.200000762939, 0, 0, 90 ) 
local state = 0     --this is the state, if 0 gate closed if 1 it's open 
  
function move() 
    if state == 0 then                       --it's closed so open it 
        moveObject ( AdminGate, 2500, -504.79998779297, 2592.6000976563, 62.099998474121)  --Time means how fast the object'ill be moved. 
        state = state + 1 
    elseif state == 1 then                 --it's open so close it 
        moveObject ( AdminGate, 2500, -504.7998046875, 2592.599609375, 56.200000762939) 
        state = state - 1 
    end 
end 
 addCommandHandler("admin75", move )--this one creates a command "/gate" wich'll start the move function 

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