Advertisement
LetsBladeHD

startup.lua

May 26th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3.  
  4. passwort = "Muffin123"
  5. console = "Meep123"
  6. write("Bitte geben Sie ihr Passwort ein: ")
  7. input = read("*")
  8.  
  9. if input == passwort then
  10. print("Als ob ich das Passwort nutze xD!")
  11. rs.setOutput("left",true)
  12. sleep(5)
  13. rs.setOutput("left",false)
  14. os.shutdown()
  15.  
  16. elseif input == console then
  17. shell.run("monitor left hello")
  18. shell.run("hello")
  19. sleep(3)
  20. shell.run("boot")
  21.  
  22. else
  23. print("Passwort falsch!")
  24. print("Bitte versuchen Sie es erneut!")
  25. sleep(3)
  26. os.reboot()
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement