AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Custom nextmap plugin (https://forums.alliedmods.net/showthread.php?t=328370)

eGRoBi 11-06-2020 15:00

Custom nextmap plugin
 
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 :)

Bacardi 11-07-2020 09:30

Re: Custom nextmap plugin
 
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"
        }
}


eGRoBi 11-09-2020 11:25

Re: Custom nextmap plugin
 
It works, thanks a lot :D


All times are GMT -4. The time now is 05:44.

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