Raised This Month: $32 Target: $400
 8% 

Custom nextmap plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eGRoBi
Junior Member
Join Date: Aug 2018
Old 11-06-2020 , 15:00   Custom nextmap plugin
Reply With Quote #1

Hello guys, i need a custom votemap plugin for CSGO.
Something like basic nextmap plugin, but with renamed the txt files(mapcycle, maplist) cuz at every update, this 2 files are restored to default, i have an awp only server, and i want to use just custom maps, hope u can help me with some ideas, thx

Last edited by eGRoBi; 11-06-2020 at 15:01.
eGRoBi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-07-2020 , 09:30   Re: Custom nextmap plugin
Reply With Quote #2

Try change mapcycle file. Add in server.cfg
Code:
sm_cvar mapcyclefile mapcycle2.txt
About maplist.txt, I guess engine is making reslist about map sound files when server start...
Maybe better leave it at it is.

Edit ...addons\sourcemod\configs\maplists.cfg
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"			"maplist2.txt"
	}
	
	/* Admin menu, map voting menu */
	"sm_votemap menu"
	{
		"file"			"maplist2.txt"
	}
	
	/* For the "randomcycle" plugin */
	"randomcycle"
	{
		"target"		"default"
	}
	
	/* For the "mapchooser" plugin */
	"mapchooser"
	{
		"target"		"default"
	}
	
	/* For the "nominations" plugin */
	"nominations"
	{
		"target"		"default"
	}
}
Bacardi is offline
eGRoBi
Junior Member
Join Date: Aug 2018
Old 11-09-2020 , 11:25   Re: Custom nextmap plugin
Reply With Quote #3

It works, thanks a lot
eGRoBi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode