Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chatbox = peripheral.wrap("top")
- chatbox.setLabel("Thaumic door")
- function doorOpen()
- chatbox.say("Hello!")
- rs.setOutput("left", true)
- sleep(0.2)
- rs.setOutput("left", false)
- end
- while true do
- event, side, player, msg = os.pullEvent()
- if event == "chatbox_command" then
- if msg == "door:open" then
- if player == "Programist135" then doorOpen()
- elseif player == "AJIicTaP" then doorOpen()
- elseif player == "TuBuS" then doorOpen()
- elseif player == "samrrr" then doorOpen() end
- end
- else
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement