Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- print ("Hello user, please imput password")
- write("")
- password = io.read()
- if password == "789789" then
- print ("Password is ok")
- rs.setOutput ("right", true )
- sleep(3)
- rs.setOutput ("right", false )
- else
- print ("Password is wrong, try again")
- write("")
- password = io.read()
- if password == "789789" then
- print ("Password is ok")
- rs.setOutput ("right", true )
- sleep(3)
- rs.setOutput ("right", false )
- else
- print ("Failed again! Activating Alarm failsafe mode")
- repeat
- rs.setOutput ("top", true)
- print ("Please input failsafe alarm deactivation password")
- write("Failsafe Password:")
- failsafe = io.read()
- if failsafe == "A-0125-A" then
- rs.setOutput ("top", false )
- break
- else
- print ("Sorry, please contact Admin or Failsafe password")
- end
- until i==3
- end
- end
- os.shutdown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement