AlliedModders (
-   Approved Plugins (
-   -   Polymorph: Mod Manager (

fysiks 12-11-2009 20:41

Polymorph: Mod Manager
9 Attachment(s)
Polymorph: Mod Manager

This is a map chooser replacement. It allows voting for the next mod (GunGame, HNS, etc.). It does not pause plugins so plugins from the mods are not loaded unless it is being played.
Admin Commands:
Console command to show/choose the next MOD to be played. When you change the next MOD it will choose a random map from the MOD's map list to be the default map.
Default access is ADMIN_MAP.
Starts a vote for the next MOD (and consequently the next map. Then it changes the map.
Default access is ADMIN_MAP.

poly_mode <#>
0: Always stay on one mod unless changed manually with admin command. (Map votes only)
1: Play X maps then next mod will default to next in polymorph folder (Map votes only)
2: Play X maps then next mod will be chosen by vote. (Map and Mod votes)
Default: 2
poly_mapspermod <#>
Number of maps played per mod before you can vote for a new mod. Default 2.
This variable is now customizable per MOD in the initialization file.
poly_extendmod <1|0>
Allow extending the current mod (Mode 2).
Default 1.
amx_extendmap_max 90
amx_extendmap_step 15
  • Install polymorph.amxx like any other plugin.
  • Create the folder /addons/amxmodx/configs/polymorph/.
  • Create MOD initialization files:
    • File must be in the polymorph folder.
    • File must begin with a number.
    • Example file 0_MyFirstMod.ini

      ; Mod Cofiguration
      ; Comments here.

      name "Mod Name"
      mapsfile maps1.ini
      mapspermod 2

      sv_gravity 900
      sv_alltalk 0
      hostname "This server is running ModName"


    • "mapsfile" must be in the polymorph folder. It should contain all the maps that you want to be eligible to be played with the MOD
  • If a mod comes with a plugins-<modname>.ini file (like Zombie Plague), it must removed.
  • If you want a plugin running for all mods then place it in plugins.ini. If you want it running for only certain mods, list it in your mod's .ini file in the polymorph folder.
The plugin will fail the first time it is run. Simply restart the server to create the plugins-polymorph.ini file.

Thanks to the SuperCentral Community for letting me test this on a public server.

Optimization/coding suggestions are welcome.

The changelog is in the source code.

fysiks 12-11-2009 20:42

Polymorph Compatibility
8 Attachment(s)
MOD Compatibility
  • Delete mapchooser.amxx.
  • Put poly_mapchooser.amxx in the /plugins folder.
  • Rename it as mapchooser.amxx
  • Add mapchooser.amxx to the list of plugins in the Polymorph MOD initializaition file.
  • If you run CSDM, the module will not unload after playing CSDM.
  • So, add poly_csdm_off.amxx to every MOD that does not use the CSDM module. (tested but unconfirmed on an active server)
If you know of any MODs that will have compatibility issues like Gungame does, let me know.

Polymorph: Rock the Vote:
This is a simple rtv plugin. Say rtv or rockthevote.
Starts a MOD vote followed by a map vote.
Add poly_rtv.amxx in plugins.ini
rtv_enable <1|0> (Default 1)
Enable the plugin.
rtv_ratio 0.51
Ratio required to rock the vote.
rtv_wait 1
Minutes before you can rtv
If you want to write add-on plugins for Polymorph you can use the attached include file.

kikifrh 12-11-2009 21:00

Re: Polymorph: Mod Manager
Gj, seems a really good plugin, I'll test on my server when getting home :p
+k for the good work ^^ (I think it will be approved)

Raddish 12-11-2009 22:34

Re: Polymorph: Mod Manager

Joker4ever 12-12-2009 02:22

Re: Polymorph: Mod Manager
Wow nice , this plugin is even more neat than the others. O: gj again.

orange 12-12-2009 03:08

Re: Polymorph: Mod Manager
ooh this will help me for working on the SC multimod server i just havent had time but i will very soon.

One 12-12-2009 04:02

Re: Polymorph: Mod Manager
oO GJ.nice idea

Arkshine 12-12-2009 07:08

Re: Polymorph: Mod Manager
Interesting. :)

Nextra 12-12-2009 08:02

Re: Polymorph: Mod Manager
I could have used this some months ago. I was too lazy to do it myself :)
Well done.

Javivi 12-12-2009 08:28

Re: Polymorph: Mod Manager
GJ fysiks

All times are GMT -4. The time now is 14:56.

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