thenuke321

Untitled

Dec 31st, 2013
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. --Area2R
  2. Area2R = createObject ( 2928,247.80000305176,1806.1999511719,7.8000001907349,0,0,0 )
  3. local autodoorx = {}
  4. speed = 3000
  5.  
  6. function DXD ()
  7. if (not autodoorx[plr]) then
  8. moveObject(Area2R, speed,247.80000305176,1806.1999511719,1.8000001907349)
  9. outputChatBox("Door opened!", root, 0, 255, 0)
  10. autodoorx[plr] = true
  11. return
  12. elseif (autodoorx[plr]) then
  13. moveObject(Area2R, speed,247.80000305176,1806.1999511719,7.8000001907349)
  14. outputChatBox("Door closed!", root, 0, 255, 0)
  15. autodoorx[plr] = false
  16. return
  17. else
  18. outputChatBox("There was an error!", root, 255, 0, 0)
  19. autodoorx[plr] = false
  20. end
  21. end
  22. addCommandHandler("ilx",DXD)
Advertisement
Add Comment
Please, Sign In to add comment