mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 14:55:36 +03:00
Added delay to map changes
This commit is contained in:
parent
8304fc143c
commit
c511d80da7
@ -115,8 +115,13 @@ public plugin_cfg() {
|
|||||||
new configFile[64],curMap[32]
|
new configFile[64],curMap[32]
|
||||||
get_configsdir(configFile,31)
|
get_configsdir(configFile,31)
|
||||||
get_mapname(curMap,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) )
|
if ( file_exists(configFile) )
|
||||||
|
set_task(6.1,"delayed_load",0,configFile,len+1)
|
||||||
|
}
|
||||||
|
|
||||||
|
public delayed_load(configFile[])
|
||||||
|
{
|
||||||
server_cmd("exec %s",configFile)
|
server_cmd("exec %s",configFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user