added custom map configs
This commit is contained in:
parent
feda453e6d
commit
3c22ae73a1
|
@ -56,7 +56,7 @@ public plugin_init()
|
||||||
#if defined USING_SQL
|
#if defined USING_SQL
|
||||||
register_plugin("Admin Base","0.20","AMXX Dev Team")
|
register_plugin("Admin Base","0.20","AMXX Dev Team")
|
||||||
#else
|
#else
|
||||||
register_plugin("Admin Base(SQL)", "0.20", "AMXX Dev Team")
|
register_plugin("Admin Base (SQL)", "0.20", "AMXX Dev Team")
|
||||||
#endif
|
#endif
|
||||||
register_cvar("amx_mode","1")
|
register_cvar("amx_mode","1")
|
||||||
register_cvar("amx_password_field","_pw")
|
register_cvar("amx_password_field","_pw")
|
||||||
|
@ -104,6 +104,16 @@ public plugin_init()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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)
|
||||||
|
if ( file_exists(configFile) )
|
||||||
|
server_cmd("exec %s",configFile)
|
||||||
|
}
|
||||||
|
|
||||||
#if !defined USING_SQL
|
#if !defined USING_SQL
|
||||||
loadSettings(szFilename[])
|
loadSettings(szFilename[])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user