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