Quote:
Originally Posted by fysiks
Map-specific config files are loaded automatically by AMX Mod X so there is no reason to do anything with those files directly. You simply need to read the cvar values like you would do for any cvar. damage220 gave you an example of one way to read the cvar value.
|
Here is Code from your Github Admin.amxx that was admin per map config posted by CounterStrike1.6
PHP Code:
loadSettings()
{
new configDir[64], filename[96]
get_configsdir(configDir, charsmax(configDir))
format(filename, charsmax(filename), "%s/users.ini", configDir)
loadUsersFile(filename)
// Load Map-Specific Admins
new szMapname[32], prefixBreak
get_mapname(szMapname, charsmax(szMapname))
filename[0] = EOS
format(filename, charsmax(filename), "%s/maps/users-%s.ini", configDir, szMapname)
loadUsersFile(filename)
if( ( prefixBreak = strfind(szMapname, "_") ) != -1 )
{
szMapname[prefixBreak] = EOS
filename[0] = EOS
format(filename, charsmax(filename), "%s/maps/users-%s.ini", configDir, szMapname)
loadUsersFile(filename)
}
}
Can you edit this and add cfg file in it ... it should read value from cfg file mp_maxrounds and print in to client !!!