Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("bottom")
- local serv = 99
- term.clear()
- term.setCursorPos(1, 1)
- os.pullEvent = os.pullEventRaw
- print("Tech Industries")
- write("Password: ")
- local ps = read("*")
- rednet.send(serv, ps)
- repeat
- id, msg = rednet.receive()
- until id == serv
- if msg == "no" then
- term.setTextColor(colors.red)
- print("Access denied")
- sleep(2.5)
- os.reboot()
- else
- term.setTextColor(colors.green)
- print("Access granted")
- sleep(2.5)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement