Advertisement
NekoTiki

Untitled

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