DescriptionThis is a simple plugin for
CS:GO which hooks and intercepts the
Next Map: *blah* message that
CS:GO servers always print to chat at map end, and replaces it with a message indicating what SourceMod says the next map is going to be. Especially useful if you're using SM-based map voting on your
CS:GO server.
Why Do I Need This Plugin?If you never change/set the next map with SourceMod plugins (stock or otherwise), and won't ever have sourcemod-based map voting, you probably don't need this plugin.On the other hand, if you are thinking about using SourceMod map voting plugins, or otherwise want to use something in SourceMod to set the next map and can't figure out why that darn
Next Map: chat message at map end STILL shows the wrong map even though the server changes to the "right" map (what SourceMod thinks will be next) - you might want to grab this plugin.
Ideally, at some point SM will be able to set the CS:GO server's own nextmap value when an SM facility/plugin changes sm_nextmap, and nobody will need this plugin anymore. Until then, there is
Show The Right Next Map.INSTALLATIONNo config files, translations files, or anything else extra to worry about. Just drop the .smx file right into your sourcemod base directory's plugins/ directory, and load the plugin, restart the server, change the map,
etc. so the the plugin loads.
sm plugins load csgo_strnm.smx will work if you have the plugin in the correct directory and don't want to restart the server
etc. The correct directory will be addons/sourcemod/plugins/ for most people.
CVAR'sThis is a very simple plugin. I do not plan to code an 'enabled' / 'disabled' CVAR into it. You either need it, or you don't. Don't load it if you don't need it.

There is one public CVAR -
csgo_strnm_version. It's purpose is to show the plugin version, and allow the "# of servers using this plugin" feature of the SM forums to work.
CREDITSI'd like to thank Psychonic for providing the info on the TextMsg user message event to hook and the "#game_nextmap" data value to check the message for.
MAINTENANCE / FEATURE REQUESTS / ETCI probably won't be doing a lot else with this plugin. It's really, really simple what it does and I don't want to complicate it (nor do I really have time).If you have a bug, post details, SM error logs,
etc. here in this thread. I will not respond to PM's requesting support. Attached Files
Get Plugin or
Get Source (csgo_strnm.sp - 3.2 KB)
Wyświetl pełny artykuł