Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("back")
- mon.setCursorPos(5,1)
- mon.setTextScale(4)
- mon.setTextColor(colors.red)
- mon.write("RULES")
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1,1)
- p = "baka"
- write("Password: ")
- pt = read("*")
- if pt == (p) then
- print("Access granted.")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- else
- print("Access denied.")
- sleep(1)
- term.clear()
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement