Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- os.pullEvent =os.pullEventRaw
- term.clear()
- term.setCursorPos(1, 1)
- write("Entrez le mot de passe: ")
- input = read("*")
- if input == "rkwe3x2" then
- redstone.setOutput("right", true)
- sleep(3)
- redstone.setOutput("right", false)
- sleep(1)
- os.reboot()
- else
- print("Incorrecte!")
- write("Entrez le mot de passe: ")
- input = read("*")
- if input == "rkwe3x2" then
- redstone.setOutput("right", true)
- sleep(3)
- redstone.setOutput("right", false)
- sleep(1)
- os.reboot()
- else
- rednet.open("left")
- rednet.broadcast("URGENT")
- sleep(1)
- print("Shutting Down")
- sleep(1)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment