Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ProgramName = "aff"
- crashcount = 0
- function crash()
- term.setTextColor(colors.yellow)
- write("Le programme a crash: ")
- term.setTextColor(colors.red)
- write(crashcount)
- term.setTextColor(colors.yellow)
- print(" fois.")
- end
- function aff()
- tmr = 5
- if crashcount == 0 then
- for i = 1,6 do
- term.clear()
- term.setCursorPos(1,1)
- crash()
- term.setTextColor(colors.blue)
- write("Lancement dans: ")
- term.setTextColor(colors.white)
- print(tmr)
- sleep(1)
- tmr = tmr - 1
- end
- end
- term.setTextColor(colors.green)
- print("Lancement du Programme ...")
- end
- while true do
- aff()
- shell.run(ProgramName)
- crashcount = crashcount + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement