Added delay to map changes

This commit is contained in:
David Anderson 2004-10-03 07:33:49 +00:00
parent 8304fc143c
commit c511d80da7

View File

@ -115,8 +115,13 @@ public plugin_cfg() {
new configFile[64],curMap[32]
get_configsdir(configFile,31)
get_mapname(curMap,31)
format(configFile,63,"%s/maps/%s.cfg",configFile,curMap)
new len = format(configFile,63,"%s/maps/%s.cfg",configFile,curMap)
if ( file_exists(configFile) )
set_task(6.1,"delayed_load",0,configFile,len+1)
}
public delayed_load(configFile[])
{
server_cmd("exec %s",configFile)
}