Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- Dator 1
- rednet.open("left")
- while true do
- local message = read()
- rednet.send(1, message)
- end
- --- Dator 2
- rednet.open("left")
- local id,message = rednet.receive()
- while true do
- if message == "password" then
- rs.setOutput("back", true)
- elseif message == "close" then
- rs.setOutput("back", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment