Jump to content

Why not move the object for everyone?


Turbe$Z

Recommended Posts

if AdminGate then
destroyElement(AdminGate)
end
local AdminGate = createObject ( 1560, 1346.78, -1759.83630, 12.5, 0, 0, 0 )
local state = 0

function move()
	if state == 0 then 
		moveObject ( AdminGate, 2500, 1348.68652, -1759.83630, 12.5)
		state = state + 1
	elseif state == 1 then
		moveObject ( AdminGate, 2500, 1346.78, -1759.83630, 12.5)
		state = state - 1
	end
end
addCommandHandler("coopajto", move )

fileDelete("c.lua")

when i type the command, the door move just for me :S how to fix this?

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