Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pullEvent = os.pullEvent
- os.pullEvent = os.pullEventRaw
- local adminpw = "2261996"
- local side = "back"
- local password = "0712"
- local opentime = 5
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("N-Lock Inc.")
- print("")
- write("Password:")
- local input = read("*")
- term.clear()
- term.setCursorPos(1,1)
- if input == password then
- textutils.slowPrint("Zugriff gewaehrt.")
- rs.setOutput(side,false)
- sleep(opentime)
- rs.setOutput(side,true)
- elseif input == adminpw then
- textutils.slowPrint("Hallo Yoda. Das Programm wurde erfolgreich herunter gefahren. Um es erneut zu starten, gebe bitte 'reboot' ein.")
- os.pullEvent = pullEvent
- break
- else
- textutils.slowPrint("Zugriff verweigert. Aktiviere Alarm-System...")
- textutils.slowPrint("Bitte versuche es in 30 Sekunden erneut.")
- rs.setOutput("bottom", true)
- sleep(30)
- rs.setOutput("bottom", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement