Advertisement
fantadada

Test-

Nov 20th, 2016
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. rednet.open("top")
  2. term.setBackgroundColor(colors.blue)
  3. term.clear()
  4.  
  5. print("===================================================")
  6. print("          serveur des train de la cite             ")
  7. print("===================================================")
  8. print("===================================================")
  9. print("                          V1                       ")
  10. print("===================================================")
  11.  
  12. while true do
  13.     sleep(0.1)
  14.          event, id, msg, distance = os.pullEvent()
  15.                         if event == "rednet_message" then
  16.                     if id == 0 then
  17.                 if msg == "train" then
  18.                 print("Arret des booster rail et des stations")
  19.             rednet.broadcast("stop")
  20.          end
  21.         end
  22.     end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement