Advertisement
Guest User

startup

a guest
Jan 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local Passwort = "Geheim"
  2. local opt = 2
  3. local side = "left"
  4. while true do
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. write("Passwort: ")
  8. local input = read("*")
  9. if input == Passwort
  10.  then term.clear()
  11.   term.setCursorPos(1,1)
  12.   print("Passwort Richtig!")
  13.   rs.setOutput(side, true)
  14.   sleep(opt)
  15.   rs.setOutput(side, false)
  16.   os.reboot()
  17.  else
  18.   term.clear()
  19.   term.setCursorPos(1,1)
  20.   print("Falsches Passwort!")
  21.   sleep(opt)
  22.   os.reboot()
  23.  end
  24.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement