skare

Untitled

Jul 16th, 2015
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. while true do
  2. os.pullEvent =os.pullEventRaw
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5. write("Entrez le mot de passe: ")
  6. input = read("*")
  7. if input == "rkwe3x2" then
  8. redstone.setOutput("right", true)
  9. sleep(3)
  10. redstone.setOutput("right", false)
  11. sleep(1)
  12. os.reboot()
  13. else
  14. print("Incorrecte!")
  15. write("Entrez le mot de passe: ")
  16. input = read("*")
  17. if input == "rkwe3x2" then
  18. redstone.setOutput("right", true)
  19. sleep(3)
  20. redstone.setOutput("right", false)
  21. sleep(1)
  22. os.reboot()
  23. else
  24. rednet.open("left")
  25. rednet.broadcast("URGENT")
  26. sleep(1)
  27. print("Shutting Down")
  28. sleep(1)
  29. os.reboot()
  30. end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment