Advertisement
NekoTiki

Untitled

Oct 1st, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. local ProgramName = "aff"
  2. crashcount = 0
  3.  
  4. function aff()
  5. tmr = 5
  6. term.setTextColor(colors.yellow)
  7. write("Le programme a crash: ")
  8. term.setTextColor(colors.red)
  9. write(crashcount)
  10. term.setTextColor(colors.yellow)
  11. print(" fois.")
  12.  
  13. for i = 1,6 do
  14. term.clear()
  15. term.setCursorPos(1,1)
  16. term.setTextColor(colors.blue)
  17. print("Lancement dans: ")
  18. term.setTextColor(colors.white)
  19. print(tmr)
  20. sleep(1)
  21. tmr = tmr - 1
  22. end
  23.  
  24. term.setTextColor(colors.green)
  25. print("Lancement du Programme ...")
  26. end
  27.  
  28. while true do
  29. aff()
  30. shell.run(ProgramName)
  31. crashcount = crashcount + 1
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement