VdanielV

[ComputerCraft] Password Computer & CraftOS VdV

Dec 23rd, 2017 (edited)
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. sleep(1)
  2. textutils.slowPrint("Uruchamianie systemu CraftOS...")
  3. textutils.slowPrint("Konto: user1")
  4. pass = "haslo_usera1"
  5. write "Podaj haslo: "
  6. input = read()
  7. if pass == input then
  8. print "Haslo prawidlowe!"
  9. textutils.slowPrint("Logowanie...")
  10. sleep(3)
  11. textutils.slowPrint("-------------")
  12. textutils.slowPrint("|Zapraszamy!|")
  13. textutils.slowPrint("-------------")
  14. redstone.setOutput("back", true)
  15. sleep(5)
  16. redstone.setOutput("back", false)
  17. shell.run("clear")
  18. else
  19. print "Haslo niepoprawne"
  20. sleep(2)
  21. shell.run("shutdown")
  22. shell.run("clear")
  23. end
Add Comment
Please, Sign In to add comment