Raised This Month: $94 Target: $400
 23% 

MapsX [ v0.5.1 ] ( 2007-08-07 update)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Hawk552 (427)
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 11-15-2006 , 03:44   MapsX [ v0.5.1 ] ( 2007-08-07 update)
Reply With Quote #1

MapsX [ v 0.5.1 ] - Auto switch special plugins & parameter by differ map type


2007-08-07 update:

1. Add - custom roundtime of general map.

2. Fit - a BUG of delay change-map in "kz_" & FTF maps.

------------------------------------------------------------------

Description:

Amxx can do especial setting at each map by edite "mapname.cfg".
But many server has hundreds of maps,that make huge workload.
This plugin is just an idea to detect current map type, then on|off certain plugins & switch certain server's setting.
Switch plugins dipend on 2 file in config-dir folder: "kzList.ini" & "generalList.ini".

------------------------------------------------------------------

What is this plugin doing:

1. Manage 3th party plugins automatically
a. in kz_* map, turn on special plugins(save-position|parachute... etc.) & pause other fun-plugins
b. in general map(DE|CS|AS|ES), turn on fun-plugins(limitless-money|superweapon... etc.) & pause kz-plugins
c. in face-to-face(awp_*|aim_*...etc.) map, turn off the 3th party plugins which list in that 2 .ini file

2. Switch certain server's setting by different type of map automatically:
a. freezetime
b. friendlyfire
c. startmoney
d. timelimit
e. weapon restrict
-- if the map furnish the weapon which you had restricted, plugin will rescind the restriction of this kind of weapon
f. differ roundtime in different general map(DE|CS|AS|ES)


3. If server use timelimit for map's change, when the map time is over, plugin will block "change map" untill the last round over.


4. Fit the BUG of "env_sound"(room_type) cannot eliminate automatically.

-------------------------------------------------------------------

Modul & Require:

<amxmodx> & <amxmisc> & <fakemeta> & restmenu.amxx

-------------------------------------------------------------------

About "kzList.ini" & "generalList.ini" file:

Please put your "kz" plugins in "kzList.ini" flie & 3th party fun plugins in "generalList.ini".

Plugins in "kzList.ini" will active when current map is "kz" type but pause in others.

Plugins in "generalList.ini" will active when current map is DE|CS|AS|ES but pause in other type.

kzList.ini:

;put your "kz_" plugins underside
;example: mykzplugin.amxx
;semicolon mean postil, would not use that line

generalList.ini:

;put your general 3th party fun plugins underside
;example: myfunplugin.amxx
;semicolon mean postil, would not use that line


-------------------------------------------------------------------

About roundtime of general map:

Because some general map include multiplicate types,

for example "csde_*" includes hostage(CS) & defuse(DE),

so the custom will be a rank.

The types which is anterior in the rank will been top-priority,

you can custom the PRI yourself by arrange the sequence of those types.

For example:

The default rank is "CS:2.5,DE:1.75,AS:2.0,ES:2.0",

this means when a map mix DE & CS,

the roundtime will been set to 2.5 minutes because the "CS" is anterior in the rank.


-------------------------------------------------------------------

About weapon restrict:

You can define 34 kinds of weapon & item(from restmenu) in different type of map.

In the custom range, "1" means "restrict" this kind of weapon.

The sequence of weapon ranking is:

Code:
 
weapon name:
|usp|glock|deagle|p228|elites|fn57|m3|xm1014|mp5|tmp|p90|mac10|ump45|ak47|galil|famas|sg552|m4a1|aug|scout|awp|g3sg1|sg550|m249|vest|vesthelm|flash|hegren|sgren|defuser|nvgs|shield|primammo|secammo 
range position:
| 1 |  2  |  3   | 4  |   5  |  6 | 7|  8   | 9 |10 | 11| 12  | 13  | 14 | 15  | 16  | 17  | 18 |19 | 20  |21 | 22  | 23  | 24 | 25 |  26    | 27  |  28  | 29  |  30   | 31 |  32  |   33   |  34
for example:

amx_restrictwpn_gn "0000000000000000000001100000000100"
means in general maps will restrict g3sg1 & sg550 & shield.

-------------------------------------------------------------------

CVAR:

amx_freezetime_kz 0 //kz_* & FTF maps's freezetime, default is "0"

amx_freezetime_gn 5 //general(DE|CS|AS|ES) maps's maps's freezetime, default is "5" seconds

amx_FF_kz 0 //kz_* maps's friendlyfire, default is "0"(off)

amx_FF_gn 1 //general maps's friendlyfire, default is "1"(on)

amx_FF_FTF 1 //FTF(facedown) maps's friendlyfire, default is "1"(on)

amx_startmoney_kz 16000 //kz_* & FTF maps's startmoney, default is "16000"

amx_startmoney_gn 800 //general maps's startmoney, default is "800"

amx_timelimit_kz 90 //kz_* maps's timelimit, default is "90" minutes

amx_timelimit_gn 30 //general maps's timelimit, default is "30" minutes

amx_timelimit_FTF 20 //FTF(facedown) maps's timelimit, default is "20" minutes

amx_roundtime_rank "CS:2.5,DE:1.75,AS:2.0,ES:2.0" //roundtime rank, the preferential type is in line of the range

amx_restrictwpn_kz "0000000000000000000001100011110100" //kz_* maps's weapon restrict

amx_restrictwpn_gn "0000000000000000000001100000000100" //general maps's weapon restrict, default is g3sg1 & sg550 & shield

amx_restrictwpn_FTF "0000000000000000101011100011110100" //FTF(facedown) maps's weapon restrict


------------------------------------
Thanks pulpy & bmann 420's advice.
Sorry for my bad English.
Attached Files
File Type: ini generalList.ini (294 Bytes, 1179 views)
File Type: ini kzList.ini (165 Bytes, 1107 views)
File Type: sma Get Plugin or Get Source (MapsX.sma - 2781 views - 18.7 KB)

Last edited by Ryu2877; 08-07-2007 at 10:04. Reason: update
Ryu2877 is offline
pulpy
Senior Member
Join Date: Oct 2005
Location: Brights Grove, ON
Old 11-15-2006 , 04:31   Re: Change especial map's setting
Reply With Quote #2

i think i understand what it does, but please redo ur original post with more detail. Any cvars, what exactly it does, give examples, what modules does it need, etc. Take a look at the first posts done on alot of the approved plugins.
__________________
pulpy is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 12-22-2006 , 06:15   Re: (update)Change especial map's setting
Reply With Quote #3

That is pretty effecient. And easier. Good Job Hopefully their wont be toooo many bugs hu
__________________
bmann_420 is offline
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 12-23-2006 , 03:37   Re: Change especial map's setting(update,2006-12-23)
Reply With Quote #4

Updated, thanks!
Ryu2877 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-26-2006 , 14:11   Re: Change especial map's setting(update,2006-12-23)
Reply With Quote #5

You really need to work on your indentation and description.

I'm going to approve it anyway, but please fix them up.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 07-02-2007 , 04:19   Re: Change especial map's setting(update,2007-07-02)
Reply With Quote #6

Updated,thanks
Ryu2877 is offline
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 07-25-2007 , 15:54   Re: Change especial map's setting[v0.5]( 2007-07-25 update)
Reply With Quote #7

updated, thanks
Ryu2877 is offline
Mikolas
Senior Member
Join Date: Aug 2006
Old 04-09-2008 , 15:01   Re: MapsX [ v0.5.1 ] ( 2007-08-07 update)
Reply With Quote #8

Just an off hand question. Based on your descriptions, were you implying that I can change plugin settings for specific maps in mapname.cfg?

I have some issues with what I believe is a plugin/specific map conflict (i.e. free ammo mod in scoutzknivez), so is there a way I can disable that plugin in mapname.cfg? Is there also a way I can disable restmenu in certain maps =/. I'd like to try your plugin, but it seems to general to work with the specific map issues I'm having.

Thanks for any assistance
Mikolas is offline
Mikolas
Senior Member
Join Date: Aug 2006
Old 04-10-2008 , 22:45   Re: MapsX [ v0.5.1 ] ( 2007-08-07 update)
Reply With Quote #9

So I decided to test it out... It seems to be eating up my cpu usage, jumping from what was at most 10 to now 30s if not 40s.

Is there a way in which only the part of this plugin where it disables 3rd party plugins in other maps is used. I do not want any of the cvar settings or their defaults, I already have it at a specific freezetime, weapons restrict, round time, etc, I do not want this plugin to modify anything else but to disable certain plugins.
Mikolas is offline
Pokemon
Senior Member
Join Date: Mar 2008
Old 04-10-2008 , 22:49   Re: MapsX [ v0.5.1 ] ( 2007-08-07 update)
Reply With Quote #10

Exelent i am looking for this now.

Bye, Thanks
__________________
Pokemon is offline
Reply


Thread Tools
Display Modes

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 02:00.


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