Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1,1)
- write("Scrivi username: ")
- username = read()
- write("Bentornato ") print(username)
- write("Scrivi la password: ")
- pass = read("#")
- if pass == "Treno007" then
- print("Password corretta")
- rs.setOutput("right", true)
- sleep(3)
- rs.setOutput("right", false)
- os.reboot()
- else if pass == "debug" then
- print("Modalità debug attivata")
- else
- print("Password errata")
- sleep(1)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement