Advertisement
Guest User

startup

a guest
Jan 18th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. write("Scrivi username: ")
  5. username = read()
  6. write("Bentornato ") print(username)
  7.   write("Scrivi la password: ")
  8.   pass = read("#")
  9.   if pass == "Treno007" then
  10.     print("Password corretta")
  11.     rs.setOutput("right", true)
  12.     sleep(3)
  13.     rs.setOutput("right", false)
  14.     os.reboot()
  15.   else if pass == "debug" then
  16.     print("Modalità debug attivata")
  17.   else
  18.     print("Password errata")
  19.     sleep(1)
  20.     os.reboot()
  21.   end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement