AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Trash (https://forums.alliedmods.net/forumdisplay.php?f=22)
-   -   Custom Map Configs (JustinHoMi/JGHG) (https://forums.alliedmods.net/showthread.php?t=594)

DoubleTap 03-28-2004 11:36

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
plb_skill 4
mp_timelimit 15
df_hook_on 0
sv_gravity 600
amx_dice off


BigBaller 03-28-2004 11:44

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 :)

DoubleTap 03-31-2004 16:52

Updated thanks to Big Baller... now complies with AMXX coding rules :)

Vic/DT

BigBaller 03-31-2004 16:56

heh soo I figure it works now?

:( I get no credit

onedamage 04-02-2004 14:46

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 ?

DoubleTap 04-02-2004 15:56

The line should be at the bottom of your server.cfg:

mapchangecfgfile server.cfg

Quote:

heh soo I figure it works now?

I get no credit
I believe I said the code was updated to comply with the code Nazi's thanks to you above...

Vic/DT

Pomme 04-02-2004 16:50

@onedamage: kinda obvious but make sure your default cvar value is defined in your server.cfg too

DoubleTap 04-08-2004 23:30

Obviously, they are NOT custom if already defined in your server.cfg... this allows ANY map to have it's own settings...

Vic/DT

`Dr. Nick Riviera` 04-16-2004 13:05

Nice job DT. Very, very usefull

BigBaller 04-16-2004 14:06

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.