Random Map on Start
Platform / Test Machine:
Windows - Amxx 1.8.0 and Amxx 188.8.131.5279 - NS 3.2
firstmap, used to save the firstmap on server startup if COMMANDLINE is set to 0
Crab Map Manager by Head crab - Most of the base code - For maximum compatibility
187comat Server run by Scrow - Getting me started on the idea and testing first beta versions
nsmod.org (originally modns.org) - For giving me a chance to release this to the public
Set a random map to start with on server startup.
By default it picks a random map on server startup and changes to it. Otherwise it will pick a new map after each map change and set it in a config to use as the servers first map.
The random map can not be in the history file (if you use Crab Map Manager) and not the current map.
This does work without Crab's Map Manager without needing any modifications to the code. Read below for instructions on how to use with or without Crab's Map Manager.
1.1 - 2/29/2008
- Switched out hardcoded paths for required files.
----- Allows compatability if the location of the amxmodx configs directory changes in the future.
- Added support for servers who either are unable or will not change their server command lines.
----- In this mode this plugin conflicts with vote map after crash.
In it's default mode this plugin will conflict with votemap after crash causing a vote to not launch.
This plugin could theoretically be used with other mods but has yet to be tested with anything other than NS 3.2
Place randommap.txt in your amxmodx configs folder, put inside a list of the
maps you would like to pick from for your startup map.
Set #define MAP_LIMIT 32 to the max number of maps you want it to find.
I suggest making it a few above how many maps you have.
If you use crab map manager do the following to let this plugin read your
Set #define CRABMAP 0 to 1
Set #define HISTORY_LIMIT 3 to match what you have in your crab map
manager SMA file.
The map history file default location is inside your amxmodx configs folder
so you can place the file there or let the plugin create it's own. Make sure
this is the same as your crab map manager maphistory.ini location.
Place randommap.cfg in your amxmodx configs folder if you follow the
directions below to edit your server command line. If the map inside is
not a map you have or use change the map name to something you
If you want to edit your server command line set #define COMMANDLINE
in the SMA file to 1 (defaulted to 0) and follow the step below.
In your server start command remove +map ******* and put in
ex. +exec addons/amxmodx/configs/randommap.cfg