Raised This Month: $51 Target: $400
 12% 

Custom Map Configs (JustinHoMi/JGHG)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 03-28-2004 , 11:36   Custom Map Configs (JustinHoMi/JGHG)
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (custom_map_configs.sma - 3926 views - 3.8 KB)
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 03-28-2004 , 11:44  
Reply With Quote #2

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
__________________

BigBaller is offline
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 03-31-2004 , 16:52  
Reply With Quote #3

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

Vic/DT
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 03-31-2004 , 16:56  
Reply With Quote #4

heh soo I figure it works now?

I get no credit
__________________

BigBaller is offline
onedamage
Senior Member
Join Date: Apr 2004
Location: Montreal Canada
Old 04-02-2004 , 14:46  
Reply With Quote #5

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 ?
onedamage is offline
Send a message via ICQ to onedamage Send a message via MSN to onedamage
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 04-02-2004 , 15:56  
Reply With Quote #6

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
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
Pomme
Member
Join Date: Mar 2004
Location: Quebec, Canada
Old 04-02-2004 , 16:50  
Reply With Quote #7

@onedamage: kinda obvious but make sure your default cvar value is defined in your server.cfg too
Pomme is offline
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 04-08-2004 , 23:30  
Reply With Quote #8

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

Vic/DT
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
`Dr. Nick Riviera`
Junior Member
Join Date: Apr 2004
Location: Digital Underground
Old 04-16-2004 , 13:05  
Reply With Quote #9

Nice job DT. Very, very usefull
`Dr. Nick Riviera` is offline
Send a message via MSN to `Dr. Nick Riviera`
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 04-16-2004 , 14:06  
Reply With Quote #10

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
__________________

BigBaller is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode