Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lengths = {["C418 - 13"]=180, ["C418 - cat"]=186, ["C418 - blocks"]=347, ["C418 - chirp"]=186, ["C418 - far"]=172, ["C418 - mall"]=197, ["C418 - mellohi"]=98, ["C418 - stal"]=151, ["C418 - strad"]=191, ["C418 - ward"]=250, ["C418 - 11"]=70,["Lena Raine - otherside"]=200}
- args = { ... }
- if #args == 0 then
- print("Usage: repeat <side>")
- return
- end
- command = args[1]
- if disk.isPresent(command) then
- if disk.hasAudio(command) then
- while disk.isPresent(command) do
- print("Playing ".. disk.getLabel(command))
- disk.playAudio(command)
- timesSlept = 0
- length = lengths[disk.getLabel(command)]
- while timesSlept <= length do
- if disk.isPresent(command) == false then
- print("Disk removed")
- return
- end
- sleep(1)
- timesSlept = timesSlept + 1
- end
- end
- else
- print("Disk in ".. command .. " drive is not an audio disk")
- end
- else
- print("No disk in ".. command .. " drive")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement