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

MapType Configs 1.1c


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Hawk552 (427)
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 04-16-2007 , 06:25   MapType Configs 1.1c
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (maptype_config.sma - 2690 views - 3.2 KB)
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.

Last edited by |PJ| Shorty; 09-10-2007 at 11:37.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
Juba_PornBorn1
BANNED
Join Date: Feb 2007
Location: Caracas
Old 04-16-2007 , 13:53   Re: MapType Configs 1.1
Reply With Quote #2

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?

Last edited by Juba_PornBorn1; 04-16-2007 at 14:36.
Juba_PornBorn1 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-16-2007 , 14:06   Re: MapType Configs 1.1
Reply With Quote #3

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?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 04-16-2007 , 14:30   Re: MapType Configs 1.1
Reply With Quote #4

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
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.

Last edited by |PJ| Shorty; 04-16-2007 at 14:35.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
Juba_PornBorn1
BANNED
Join Date: Feb 2007
Location: Caracas
Old 04-16-2007 , 14:46   Re: MapType Configs 1.1
Reply With Quote #5

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.

Last edited by Juba_PornBorn1; 04-16-2007 at 14:53.
Juba_PornBorn1 is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 04-16-2007 , 15:19   Re: MapType Configs 1.1
Reply With Quote #6

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...
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 04-16-2007 , 21:04   Re: MapType Configs 1.1
Reply With Quote #7

This functionality has already been added to the upcoming AMXX 1.8. Just FYI.
__________________
Brad is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 04-16-2007 , 21:23   Re: MapType Configs 1.1
Reply With Quote #8

Why is everything good in 1.8?!?!? Nice plugin btw.
__________________

Last edited by VEN; 04-19-2007 at 12:38. Reason: don't abuse uppercase
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 04-17-2007 , 03:16   Re: MapType Configs 1.1
Reply With Quote #9

Quote:
Originally Posted by Brad View Post
This functionality has already been added to the upcoming AMXX 1.8. Just FYI.
O NO , usefull in 1.8
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who donīt.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 04-17-2007 , 06:24   Re: MapType Configs 1.1
Reply With Quote #10

Is there a possibility to beta test 1.8?
That would be great
__________________
regalis 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 17:26.


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