AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   MapType Configs 1.1c (https://forums.alliedmods.net/showthread.php?t=54060)

|PJ| Shorty 04-16-2007 06:25

MapType Configs 1.1c
 
1 Attachment(s)
This feature is added to amxmodx since v1.8!!

By a request, i only found plugins with hardcoded cfg files for map types, so i made this one.

Itīs very simple and works with all types of maps, who have a "_" inside the name, like de_dust.

feed back welcome :)

Code:


* MapType Configs
*
* Description:
*  - executes Map-Type specific Config-Files
*
* Usage:
*  - add to your autoexec.cfg: amx_maptype_cfg 1
*  - cfg files:
*
*    /configs/maps/prefix-default.cfg (if you donīt like, see defines)
*    /configs/maps/prefix-TYPE.cfg
*
*    Replace TYPE with your type of map, examples:
*
*    de_* maps: prefix-de.cfg
*    cs_* maps: prefix-cs.cfg
*    surf_*maps: prefix-surf.cfg
*    and so on...
*
* CVARs:
*    amx_maptype_cfg <1/0> - load configs(1) or not(0), default 1
*
*  Notes:
*
*    add amx_maptype_cfg 0 to your autoexec.cfg to disable 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!
*
* Changelog:
*  - v1.0: 2007/04/15
*  - first release
*  - v1.1: 2007/04/16
*  - added: cvar "amx_maptype_cfg", default 1
*  - added: logs on/off by define, default off
*  - added: load default cfg if no other exists, see defines, default on,
*    prefix-default.cfg is needed
*  - v1.1b: 2007/04/19
*  - changed: strtok() instead of split() (thx VEN)
*  - v1.1c: 2007/04/23
*  - changed: default settings


Juba_PornBorn1 04-16-2007 13:53

Re: MapType Configs 1.1
 
Thanks! I asked for this!

add amx_maptype_cfg <1/0> to autoexec.cfg

So let me see if I get this right create these two files on that mentioned specific folder?

* /configs/maps/prefix-default.cfg
* /configs/maps/prefix-TYPE.cfg

on the 1st one add if I want and it will always have de_maps

de_* maps

on the 2nd add whatever maps types I want only aside from de_maps

fy_* maps

and the plugin will play de_maps and fy_maps only?

what if you want to add another type of map on change map?

I go to /configs/maps/prefix-TYPE.cfg and replace the one there it's there for the one I want?

so would I not need to put it to amxx.cfg to on map change change the type of map i want?

YamiKaitou 04-16-2007 14:06

Re: MapType Configs 1.1
 
Is there any special reason why we need to add it to the autoexec.cfg file, can't we just use the server.cfg file?

|PJ| Shorty 04-16-2007 14:30

Re: MapType Configs 1.1
 
if the server.cfg donīt load at mapchange, you can add it to server.cfg without problems.
but most it will be load at mapchange.

@Juba PronBorn1

you can create all files you want.
prefix-de.cfg - for all de_ maps
prefix-fy.cfg - for all fy_ maps
prefix-surf.cfg - for all surf_ maps
and so on...

there is no prefix-TYPE.cfg, you have to replace TYPE with the prefix you need. de, fy, surf, cs, and so on. see examples above

Juba_PornBorn1 04-16-2007 14:46

Re: MapType Configs 1.1
 
so how do you choose to play only a specific type of map?

I think i get it. You add the type of map to the autoexec

prefix-fy.cfg

but this would go better on amxx.cfg so if during game-play you want tyo change the type of map you just edit and on map change it getas you the type of map for what you've changed.

|PJ| Shorty 04-16-2007 15:19

Re: MapType Configs 1.1
 
simple...
only create the file prefix-fy.cfg, it will be executed on every fy_ map...
thats it.
you donīt need to configure something, if you have the file, it will be loaded on every fy_ map.

this plugin only loads specific config files, which maps you play on your server is your part...

Brad 04-16-2007 21:04

Re: MapType Configs 1.1
 
This functionality has already been added to the upcoming AMXX 1.8. Just FYI.

vvg125 04-16-2007 21:23

Re: MapType Configs 1.1
 
Why is everything good in 1.8?!?!? Nice plugin btw.

|PJ| Shorty 04-17-2007 03:16

Re: MapType Configs 1.1
 
Quote:

Originally Posted by Brad (Post 466041)
This functionality has already been added to the upcoming AMXX 1.8. Just FYI.

O NO :wink: , usefull in 1.8 :up:

regalis 04-17-2007 06:24

Re: MapType Configs 1.1
 
Is there a possibility to beta test 1.8?
That would be great :)


All times are GMT -4. The time now is 05:28.

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