hi have anyone some mod that if a new map starts the server restart after 10 seconds .
i have see that on a server and it was a clock ( the same if you sett the bom)
can anyone help me.it's for spearhead
You can do a round transition which kinda ends the map but will let it restart again
restartah:
if (getcvar "mapname" != getcvar "oldmapname")
{
local.map = getcvar "mapname"
setcvar "oldmapname" local.map
waitthread timer
level.manager = spawn DM_Manager
level.manager doroundtransition
}
else
{
level.manager remove
}
end
timer:
for (local.countdown = 5; local.countdown > 0;local.countdown--)
{
iprintln ("Server restarting in " + local.countdown + " seconds!")
wait 5
}
end
thread to it after level waittill spawn, edit the 5 to change how long to wait before it ends the round for (local.countdown = [yellow]5[/yellow]; local.countdown > 0;local.countdown--)
This would need added to every map script you run, perhaps there is an easier way.