Advertisement
Guest User

startup.lua

a guest
Feb 23rd, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. shell.run("clear")
  2. function passwort()
  3. textutils.slowPrint("               Bitte Passwort eingeben")
  4. print(" ")
  5. write("                     Passwort : ")
  6. Passwort =io.read()
  7. if Passwort =="0000" then
  8.  shell.run("clear")
  9.  rs.setOutput("back", true)
  10.  textutils.slowPrint("Passwort richtig")
  11.  sleep(10)
  12.  rs.setOutput("back", false)
  13.  shell.run("clear")
  14.  passwort()
  15. else
  16.  shell.run("clear")
  17.  textutils.slowPrint("Falsches Passwort!!")
  18.  shell.run("clear")
  19.  shell.run("reboot")
  20.  passwort()
  21.  end
  22. end
  23. passwort()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement