Advertisement
Noneatme

Untitled

Sep 10th, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. --
  2.  
  3. local gate = createObject(2978, 2768.8999023438, -1641.6999511719, 20.29999961853, 0, 0, 0)
  4. local gatevar = false
  5. local gatemoving = true
  6.  
  7. local function moveThisFuckingScheissGate(thePlayer)
  8.     if(gatemoving == true) then return end
  9.     gatemoving = true
  10.     if(gatevar == false) then
  11.         moveObject(gate, 5000, 2768.8999023438, -1641.6999511719, 30.89999961853)
  12.     else
  13.         moveObject(gate, 5000, 2768.8999023438, -1641.6999511719, 20.29999961853)
  14.     end
  15.     gatevar = not gatevar
  16.     setTimer(function()
  17.         gatemoving = false
  18.     end, 10000, 1)
  19. end
  20.  
  21. addCommandHandler("moveit", moveThisFuckingScheissGate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement