Quote:
Originally Posted by Black4Dragon
See on line 8 the "amx_nextmod 1"? The mods are listed in the way you added them in the polymorph folder (ex 0_modname it will be the first, 1_modname it will be the second, and so on). You can change that "1" in what number of mod you want and the server will start with that mod.
|
You should not that the number given to the amx_nextmod command may not match the number in the filename in the polymorph folder. Use the amx_nextmod command without any arguments to get the list of mods with their corresponding number. Normally, using the command "amx_nextmod 1" will change to the mod in the file named "0_modname.ini". Therefore, amx_nextmod 0 WILL NOT do anything, you must start at 1.
Quote:
Originally Posted by SGT
Oh, I get it now. So it won't change to that mod when I type amx_nextmod, but rather it would pick that mod and map when the server crashes? right?
|
I did nothing to change the functionality of amx_nextmod. It is the same as it always was. The plugin that I posted above causes the following sequence of events:
1. The server starts for the first time (or after a crash)
2. The server loads the map in the command line.
3. The amx_nextmod command sets the next mod.
4a. One second later it changes the map to "map_name_here".
4b. Consequently, Polymorph will rewrite the plugins-polymorph.ini file when the server tells the plugin that the map has ended.
5. Now, when the map has changed to "map_name_here" it will be running the mod that you specified in the plugin above (by the number which I just chose to put 1 and can be changed to 2 or 3 etc.).
Everything should be automatic, you shoudn't need to do anything (which is what you asked for
).
__________________