View Single Post
[nFb]GraveKeeper
Senior Member
Join Date: Mar 2004
Location: Connecticut, U.S.A.
Old 08-31-2004 , 23:39  
Reply With Quote #9

Check this out:

* Command:
*
* amx_lockmapcvars -- turns on and off the locking of cvars listed with
* a "1" in the map_cvars.txt. If no cvars are listed
* this command has no effect. If cvars are listed
* with a "1", then they are by default locked
* unless this command is issued. If they have a "0"
* then this command has no effect. ADMIN_RCON access
* is required to use this command.
*
* The format of the cvar file: M = map line C = cvar line 0|1 = locked
* M mapname
* C lock0|1 cvar value
*
* Everytime you give a mapname, you must precced it with "Map". Then the
* line or lines below must start with "C" indicating you are setting a
* cvar. After the "C", leave a space, then put a number "1" or "0". "1"
* locks out any changes from votes or by lower admins. Note that ADMIN_RCON
* level admins can change this value in game for the remainder of the map
* time using amx_lockmapcvars. The values will not be changed in the file
* so next time this map is player, the value will be that which is in the
* file. "0" allows for changes to take place. So a "0" will set the default
* for map start, but leaves the cvar soft and changeable by admins or by
* voting, a "1" will set the default for a map and keeps it that way unless
* an RCON leve admin changes it. You may have as many cvars as you want.
* Once the next line is "Map" or end of file, you are done setting cvars
* for that map. You may then continue to repeat the process for each map
* you want to set special cvars for. Updated. If you want to lock cvars for
* all maps, make the map name "*allmaps", then list your cvars as you would
* with individual maps. All maps lock should be listed first in the file.
*
* To pause/unpause plugins for maps: M = map line P = plugin line U/P
* M mapname
* P ActionPause/Unpause=P|U plugin_file_name
*
* If you want to keep a plugin paused for most maps, but unpause it for one
* or a few maps, pause the plugin using the "Map *allmaps" variable and
* make sure thats the first listing in your map_cvars.txt. Then to re-
* activate the plugin for a particular map, ust the "U" variable to unpause
* the plugin. For all other plugin where you just want them to normally
* run, but for a few maps want them off, use the "P" variable. Remember to
* Preceed the plugin line with a "P", so to pause, its "P P pluginname.amx"
* and to unpause (provedied you set pause for all maps for this plugin) then
* its "P U pluginname.amx". I hope this was clear enough. See example below:
*
* Actual example of the contents of a working map_cvars.txt:
*
* Map *allmaps
* C 1 mp_hostagepenalty 0
* P P amx_ejl_weather.amx
* Map oc_bestjump3
* C 1 sv_gravity 1000
* P U amx_ejl_weather.amx
* Map starwars
* C 1 sv_gravity 100
* C 1 sv_airaccelerate -15
* C 1 mp_friendlyfire 0
* Map de_dust
* P P roll_the_dice.amx
* C 0 mp_friendlyfire 1
[nFb]GraveKeeper is offline
Send a message via AIM to [nFb]GraveKeeper