View Full Version : map_start / map_end?
bonehead
10-01-01, 09:53am
i would like to be able to create scripts that execute before a map starts (before server.cfg executes) even better would be after a map ends...
there is a client_start callback function, would it be possible to have a map_start or map_end function?
i would like to execute some short maintenance scripts dealing with log files between rounds...
before a maps start is not possible (not before every map starting that is). At a map end is easy, on client_start() set a timer for timelimit() :)
Timelimit is not useful for maps like dustbowl or CS servers setting maxrounds.
Besides that, in my own tests I found some problems setting a timer for timeleft (). If the things you want to do take a long time, there was a conflict with the mapchange to the next map in cycle.
So if there would be a way to call a function for sure before mapchange, it would be usefull.
bonehead
11-01-01, 07:44am
yes, agreed... i need to be able to detect when the maps are changed manually as well, as they quite often are...
as a slightly off-topic <blush> question, is there a way to execute a shell script? after posing this question originally, i realised that there might not be a way to shell to the os either...
my original intent was to write a linux (sh) script which would gz archive the log entries as each level changed...
Manual changes are made by admin_map. Just expend this function.
bonehead
11-01-01, 03:18pm
...or rcon changelevel
vBulletin v3.5.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.