Advertisement
Plazter

Sender/open

Jun 19th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local whitelist = {
  2. ['plazter'] = true,
  3. }
  4.  
  5. m = peripheral.wrap("right") -- player detector
  6. rednet.open("top")
  7.  
  8. function right()
  9. if msg == "Plazter" then
  10. rs.setOutput("front")
  11. print("Plazter")
  12. end
  13.  
  14. if not p1 == "Plazter" then
  15. print("dafuq?")
  16. end
  17. end
  18.  
  19. while true do
  20.  
  21. local event, p1 = os.pullEvent("player")
  22. local id, msg = rednet.broadcast()
  23.  
  24. if p1 then
  25. rednet.broadcast(p1)
  26. end
  27.  
  28. if rednet.receive() then
  29. right()
  30. end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement