Not all plugins add all commands in admin menu.
You can add yourself missing commands in admin menu. Dynamic Admin Menu Configuration
Go and edit ...addons/sourcemod/configs/adminmenu_custom.txt
First time edit it look like this.. "empty"
Code:
// Custom admin menu commands.
// For more information:
//
// http://wiki.alliedmods.net/Custom_Admin_Menu_%28SourceMod%29
//
// Note: This file must be in Valve KeyValues format (no multiline comments)
//
"Commands"
{
}
Let built this command in Server Commands gategory called Set Next Map
And get this command in right order in admin menu, use ...addons/sourcemod/configs/adminmenu_sorting.txt
Code:
/**
* The default sorting is designed to look familiar to Mani's admin menu.
* You may re-order items here for your own menu. Any items not explicitly
* sorted will be sorted by their final translated phrases for each given client.
*/
"Menu"
{
"PlayerCommands"
{
"item" "sm_slay"
"item" "sm_slap"
"item" "sm_kick"
"item" "sm_ban"
"item" "sm_gag"
"item" "sm_burn"
"item" "sm_beacon"
"item" "sm_freeze"
"item" "sm_timebomb"
"item" "sm_firebomb"
"item" "sm_freezebomb"
}
"ServerCommands"
{
"item" "sm_map"
"item" "Set Next Map"
"item" "sm_execcfg"
"item" "sm_reloadadmins"
}
"VotingCommands"
{
"item" "sm_cancelvote"
"item" "sm_votemap"
"item" "sm_votekick"
"item" "sm_voteban"
}
}
Thank you Bacardi, This is just what I needed on my HL2DM servers. I am trying to wean off of Mani and this is one feature I use a lot to be able to preveiw new maps on the server. I always learn from your posts.
Thank you again, Bacardi. This is working great. I had to use the "file" "maplist.txt" To get it to work. I tried the "target" first but it did not go. I now have both the nextmap and the choose map showing the same listing. For some reason the Mani I still have on one server seems to show a different order in the listings. Cannot find any posts to know how Mani is calling up maps. Would you know what it uses? It seems to be in alphabetical listing. I have over 200 maps on one server and +150 on another so it is a long process to find a certain map to load. I thank you again for all you do. Am glad to be using more and more SM.
I had to use the "file" "maplist.txt" To get it to work. I tried the "target" first but it did not go.
This how SM maplists.cfg works.
Depends plugin do it have coded to use ReadMapList.
Then in settings you can set "file" what it try read first.
example
Code:
/**
* Use this file to configure map lists.
*
* Each section is a map list that plugins can use. For example, the Admin Menu
* requests an "admin menu" map list, and you can control which maps appear via
* this file.
*
* Each section must have a property that explains where to read the maps from.
* There are two properties:
*
* target - Redirect the request to another section.
* file - Read a file of map names, in mapcycle.txt format.
*
* There is one section by default, called "mapcyclefile" - it is mapped to the
* mapcycle.txt file, or whatever the contents of your mapcyclefile cvar is.
*
* If a plugin requests a map list file which doesn't exist, or is empty, SourceMod
* tries the "default" section, and then the "mapcyclefile" section.
*/
"MapLists"
{
/**
* Default requests go right to the mapcyclefile.
*/
"default"
{
"target" "mapcyclefile" // Server cvar mapcyclefile what holds mapcycle.txt file or else
}
/* Admin menu, map menu */
"sm_map menu"
{
"file" "maplist.txt"
}
/* Admin menu, map voting menu */
"sm_votemap menu"
{
"file" "maplist.txt"
}
/* For the "randomcycle" plugin */
"randomcycle"
{
"target" "default"
}
/* For the "mapchooser" plugin */
"mapchooser"
{
"target" "default"
}
/* For the "nominations" plugin */
"nominations"
{
"target" "default"
}
}
With "target", you can "aim" to another plugin (or server cvar). One Plugin read/follow another plugin maplist.
ex. nominations > mapchooser > default > mapcyclefile
example
Code:
/**
* Use this file to configure map lists.
*
* Each section is a map list that plugins can use. For example, the Admin Menu
* requests an "admin menu" map list, and you can control which maps appear via
* this file.
*
* Each section must have a property that explains where to read the maps from.
* There are two properties:
*
* target - Redirect the request to another section.
* file - Read a file of map names, in mapcycle.txt format.
*
* There is one section by default, called "mapcyclefile" - it is mapped to the
* mapcycle.txt file, or whatever the contents of your mapcyclefile cvar is.
*
* If a plugin requests a map list file which doesn't exist, or is empty, SourceMod
* tries the "default" section, and then the "mapcyclefile" section.
*/
"MapLists"
{
/**
* Default requests go right to the mapcyclefile.
*/
"default"
{
"target" "mapcyclefile"
}
/* Admin menu, map menu */
"sm_map menu"
{
"file" "maplist.txt"
}
/* Admin menu, map voting menu */
"sm_votemap menu"
{
"target" "sm_map menu"
}
/* For the "randomcycle" plugin */
"randomcycle"
{
"target" "default"
}
/* For the "mapchooser" plugin */
"mapchooser"
{
"target" "default" // Follow "default"
}
/* For the "nominations" plugin */
"nominations"
{
"target" "mapchooser" // Follows mapchooser
}
}
Anyone still have this working?
I had this working on our server before, but it seems like broken now.
i have latest SM and MM snapshots from today, and running collection from workshop. set nextmap comes up in menu, i can choose map, but nothing happens...
nothing is stored in error logs either.
hi, we also had this working on our server until about a month ago now it wont work?, we are also using source's workshop for maps now so will this plugin work with this too if it gets fixed?