MatthewGB

Lua Main Rednet

Jan 6th, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. print("Please login at the door")
  2. rednet.open("back")
  3. a = rednet.receive(10)
  4. print a
  5. b = true
  6. if a == "4703" then
  7.     print("Password correct")
  8.     b = false
  9. end
  10. if b then
  11.     sleep(1)
  12.     os.reboot()
  13. end
Advertisement
Add Comment
Please, Sign In to add comment