Custom Map Configs (JustinHoMi/JGHG)
1 Attachment(s)
Original AMX versions converted for AMX Mod X:
http://forums.alliedmods.net/showthread.php?t=552 * Place your custom configs in the designated folder * (addons/amxx/custom/map_configs by default) * Configs should be in the format "mapname.cfg" * Insert any cvar or cmd to be executed at map change * * There are two commands that can be run by admin with * ADMIN_CFG access in game: * amx_customcfg <command> - Adds command to current map's config file * amx_customcfgdelete - Deletes the custom cfg file for current map * * Changelog: * 0.9 - JGHG added two new commands, runnable by server console * or a client with ADMIN_CFG access: * * amx_customcfg <command> - Adds command to current map's config file * amx_customcfgdelete - Deletes the custom cfg file for current map *Allows you to specify custom configs for different maps on your server. Place <mapname>.cfg in "addons/amxx/custom/map_configs/" with any cvars or commands that you like. ---------------- *A sample config for de_dust would have the filename "addons/amx/custom/map_configs/de_dust.cfg" and might look like this: Code:
mp_freezetime 3 |
You do know you only have to place the SMA in a attatchment right?
Hopefully JGHG used the get_customdir ... i need to learn how to use that better. *Edit well he used something like that, soo it will help me for other plugins :) |
Updated thanks to Big Baller... now complies with AMXX coding rules :)
Vic/DT |
heh soo I figure it works now?
:( I get no credit |
little problem,
i use the custom configs for custom maps, such as awp_map for example; where i take off freezetime, put alltalk, close ptb, etc...etc... but when the map changes to (for example) aztec i want it to reload the original server configs, but it doesnt do that, it keeps alltalk on and freezetime off, etc...etc.... how do i make it go back to original configs ? theres a line i gotta somwhere that says "mapchange exec server.cfg" am i right ? where should i put it ? |
The line should be at the bottom of your server.cfg:
mapchangecfgfile server.cfg Quote:
Vic/DT |
@onedamage: kinda obvious but make sure your default cvar value is defined in your server.cfg too
|
Obviously, they are NOT custom if already defined in your server.cfg... this allows ANY map to have it's own settings...
Vic/DT |
Nice job DT. Very, very usefull
|
Bailopan and SniperBeamer were talking on IRC into making this type of deal (this plugin function) into a core admin.sma function.
Soo be on the look outs, this might become useless if they incorpate that change into AMXX .20 |
| All times are GMT -4. The time now is 17:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.