Advertisement
fantadada

abri

Apr 23rd, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.19 KB | None | 0 0
  1. rednet.open("top")
  2. term.setBackgroundColor(colors.blue)
  3. term.clear()
  4.  
  5. print("===================================================")
  6. print("          serveur de l'abris principale 451        ")
  7. print("===================================================")
  8. print("===================================================")
  9. print("                          V0.2                     ")
  10. print("===================================================")
  11.  
  12. while true do
  13.     sleep(0.1)
  14.          local senderId, message, protocol = rednet.receive()
  15.    
  16.                 if senderId == "" then
  17.                     print("verification de L'id :"..id)
  18.             if msg == "alert" then
  19.         print("alerte  l'ordi "..id)
  20.      rs.setOutput("back", false)
  21.         rs.setOutput("back", false)
  22.         rs.setOutput("back", false)
  23. end
  24. if msg == ("2") then
  25. print("demande du rez de chausser par l'ordi "..id)    
  26.         rs.setOutput("back", false)
  27.         rs.setOutput("back", false)
  28.         rs.setOutput("back", false)
  29. end
  30. if msg == ("3") then
  31.     print("demande du rez de chausser par l'ordi "..id)
  32.     rs.setOutput("back", false)
  33.         rs.setOutput("back", false)
  34.         rs.setOutput("back", false)
  35.  end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement