mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 06:45:37 +03:00
Added delay to map changes
This commit is contained in:
parent
8304fc143c
commit
c511d80da7
@ -115,9 +115,14 @@ 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) )
|
||||||
server_cmd("exec %s",configFile)
|
set_task(6.1,"delayed_load",0,configFile,len+1)
|
||||||
|
}
|
||||||
|
|
||||||
|
public delayed_load(configFile[])
|
||||||
|
{
|
||||||
|
server_cmd("exec %s",configFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
loadSettings(szFilename[]) {
|
loadSettings(szFilename[]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user