Describe what you want the script to do exactly in more detail. You can easily make a script that automatically downloads the latest demo available on the server on each map start, getting them all in sequence is a bit tougher.
[cubescript]
if (! (checkalias mapstartalways)) [ mapstartalways = "" ]
if (! (strstr $mapstartalways getdemo)) [
add2alias mapstartalways [
if $connected [ sleep 1000 getdemo ]
]
]
[/cubescript]
In SVN, heres how it would look:
[cubescript]checkinit mapstartalways [ if $connected getdemo ][/cubescript]
[cubescript]
if (! (checkalias mapstartalways)) [ mapstartalways = "" ]
if (! (strstr $mapstartalways getdemo)) [
add2alias mapstartalways [
if $connected [ sleep 1000 getdemo ]
]
]
[/cubescript]
In SVN, heres how it would look:
[cubescript]checkinit mapstartalways [ if $connected getdemo ][/cubescript]