Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("----------Kaffe Security v1.0----------")
- term.setCursorPos(3, 4)
- print("Skriv inn mastercode:")
- local input = read("*")
- if input == ("123")
- then
- sleep(1)
- term.clear()
- term.setCursorPos(1, 1)
- print("----------Kaffe Security v1.0----------")
- term.setCursorPos(3, 4)
- print("Mastercode godkjent:)")
- rs.setOutput("right", true)
- sleep(5)
- else
- term.clear()
- term.setCursorPos(1, 1)
- print("----------Kaffe Security v1.0----------")
- term.setCursorPos(3, 4)
- print("Stengt!")
- rs.setOutput("right", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement