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

CS Map Configs


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-02-2004 , 12:01   CS Map Configs
Reply With Quote #1

heya people,

i made this on request and thought i'd post it to the public

Code:
// AMX Mod X Script by [RST] FireStorm
//
// You need the following config files:
//
// configs/awp_maps.cfg
// configs/aim_maps.cfg
// configs/de_maps.cfg
// configs/as_maps.cfg
// configs/cs_maps.cfg
// configs/fy_maps.cfg
// configs/he_maps.cfg
// configs/default.cfg
//
// in your AMX Mod X folder!
//
//
// Usage:
//
// amx_setmapscfg <1/0>    = enable/disable Map Specific Configs (default is 0)
//
//
// Description:
//
// This plugin will load specific configs for the kind of map played.
// Supported are: awp_, aim_, de_, cs_, as_, fy_ and he_ maps
//
//
// Notes:
//
// add amx_mapscfg 1 to your server.cfg if you like to enable it by default,
// but DON'T add it to your amxx.cfg as it will be set on every mapchange and you can
// only change it again with editing the amxx.cfg!
//
// when the specific configs are disabled, the file default.cfg is executed
// and when it's enabled, the file for the map is executed.
//
//
// Changelog:
//
// - 02.10.2004 Version 1.0c
//   Initial Public Release
//
FeuerSturm is offline
skulldiggers
Member
Join Date: Sep 2004
Old 10-02-2004 , 12:29  
Reply With Quote #2

u maked for me

this this a coool plugin

download now
__________________
Headshot rules...
skulldiggers is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 10-02-2004 , 14:27  
Reply With Quote #3

Why not allow admin to specify any prefix:

Quote:
; amxmodx/configs/maptypecfg_de.cfg
amx_addprefixcfg de

; amxmodx/configs/maptypecfg_as.cfg
amx_addprefixcfg as

; amxmodx/configs/maptypecfg_pirate.cfg
amx_addprefixcfg pirate
Johnny got his gun is offline
LoWe
Member
Join Date: Mar 2004
Old 10-02-2004 , 14:42  
Reply With Quote #4

@Johnny got his gun: That should be much better, then you could use it on for an example all scoutzknifez-maps and things like that. Lets hope he change it...

@FireStorm: Maybe you should put the cfgs in a separate folder, or is it only me who thinks it anoying with folders containg to much files?
LoWe is offline
Send a message via Skype™ to LoWe
jackflack
Member
Join Date: Mar 2004
Location: Temecula, CA
Old 10-02-2004 , 18:37  
Reply With Quote #5

yeah I like this too... but am looking for it to be off of the cfg extension for maps like scoutzknives we use custom gravity.

Also i know that you already are on ver. C but wouldnt it be better/easy to make it go into configs/maps instead of in the root folder?


-jack
jackflack is offline
jackflack
Member
Join Date: Mar 2004
Location: Temecula, CA
Old 10-02-2004 , 19:02   jacks brain is malfunctioning
Reply With Quote #6

ok I can't seem to get it to work

1. This is what I added to server.cfg
// Execute changed map configs on map change
amx_mapscfg 1

2. Added plugin, it worked
[ 35] Idiot Model chang 1.00 IJs amx_idiot.amxx running
[ 36] AMXX Piss 2.0 KRoTaL amx_piss.amxx running
[ 37] CS Map Configs 1.0c [RST] FireStorm amx_mapcfgs.amx running
37 plugins, 37 running

3. added map.cfg files to /addons/amxmodx/configs/

fy_snow.cfg

4. fy_snow.cfg has this different from the main server.cfg file

Server cvar "mp_freezetime" = "1"
Server cvar "mp_friendlyfire" = "0"
Server cvar "mp_roundtime" = "1.75"
Server cvar "mp_timelimit" = "20"
Server cvar "mp_startmoney" = "16000"

5. went in map before and typed amx_setmapscfg 1 then changed map a few rounds later to fy_snow.

and.... drum roll

nothing happens.

Did i fubar it somehwere along the way?

-jack
jackflack is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-02-2004 , 21:50  
Reply With Quote #7

Quote:
// You need the following config files:
//
// configs/awp_maps.cfg
// configs/aim_maps.cfg
// configs/de_maps.cfg
// configs/as_maps.cfg
// configs/cs_maps.cfg
// configs/fy_maps.cfg
// configs/he_maps.cfg
// configs/default.cfg
//
// in your AMX Mod X folder!
you don't need a file for every map, one file for every map kind.
FeuerSturm is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 10-02-2004 , 23:09  
Reply With Quote #8

Deleted by request of author
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull 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 10:35.


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