Advertisement
samrrr

Untitled

Mar 28th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. chatbox = peripheral.wrap("top")
  2. chatbox.setLabel("Thaumic door")
  3. function doorOpen()
  4. chatbox.say("Hello!")
  5. rs.setOutput("left", true)
  6. sleep(0.2)
  7. rs.setOutput("left", false)
  8. end
  9.  
  10. while true do
  11. event, side, player, msg = os.pullEvent()
  12. if event == "chatbox_command" then
  13. if msg == "door:open" then
  14. if player == "Programist135" then doorOpen()
  15. elseif player == "AJIicTaP" then doorOpen()
  16. elseif player == "TuBuS" then doorOpen()
  17. elseif player == "samrrr" then doorOpen() end
  18. end
  19. else
  20. os.reboot()
  21. end
  22.  
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement