added localinfo stocks

This commit is contained in:
Felix Geyer 2004-03-25 13:34:27 +00:00
parent c7981eb54b
commit 64a7afa371

View File

@ -91,13 +91,14 @@ stock is_running(const arg[]) {
return equal(mod_name,arg) return equal(mod_name,arg)
} }
stock build_path( path[] , len , {Float,_}:... ) { stock get_basedir(name[],len)
format_args( path , len , 2 ) return get_localinfo("amxx_basedir",name,len)
return replace( path , len , "$basedir", "addons/amxx" )
}
stock get_basedir( name[], len ) stock get_configsdir(name[],len)
return copy(name,len,"addons/amxx") return get_localinfo("amxx_configsdir",name,len)
stock get_customdir(name[],len)
return get_localinfo("amxx_customdir",name,len)
stock get_user_wonid(index) stock get_user_wonid(index)
{ {