AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [L4D2] Change order of items on admin menu (https://forums.alliedmods.net/showthread.php?t=327678)

XDglory 10-03-2020 12:40

[L4D2] Change order of items on admin menu
 
Several plugins could let admins to use their functions with admin menu, like [L4D/L4D2] Weapon/Zombie Spawner or [L4D & L4D2] New custom commands.

When I installed both of them, can I change their order that showing on the menu? I'm quite confused by their basis of listing on the menu.

Bacardi 10-03-2020 14:27

Re: [L4D2] Change order of items on admin menu
 
Try this

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"                "l4d2vomitplayer"
                "item"                "l4d2incapplayer"
                "item"                "l4d2speedplayer"
                "item"                "l4d2sethpplayer"
                "item"                "l4d2colorplayer"
                "item"                "l4d2sizeplayer"
                "item"                "l4d2shakeplayer"
                "item"                "l4d2chargeplayer"
                "item"                "l4d2teleplayer"
                "item"                "l4d2dontrush"
                "item"                "l4d2airstrike"
                "item"                "l4d2changehp"
                "item"                "l4d2godmode"


                "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"
        }

        "sm_ws_topmenu"
        {
                "item"                "sm_sw_menu"
                "item"                "sm_gw_menu"
                "item"                "sm_spawn_menu"
                "item"                "sm_smg_menu"
        }


        "ServerCommands"
        {
                "item"                "l4d2createexplosion"
                "item"                "l4d2norescue"
                "item"                "l4d2gnomerain"
                "item"                "l4d2survrain"
                "item"                "l4d2gnomewipe"


                "item"                "sm_map"
                "item"                "sm_execcfg"
                "item"                "sm_reloadadmins"
        }

        "VotingCommands"
        {
                "item"                "sm_cancelvote"
                "item"                "sm_votemap"
                "item"                "sm_votekick"
                "item"                "sm_voteban"
        }
}

*edit
If you want hide some menu options, you can do it from admin groups or change admin flags from admin overrides.

XDglory 10-04-2020 00:54

Re: [L4D2] Change order of items on admin menu
 
This is exactly what I'm looking for, Thank you very much!!


All times are GMT -4. The time now is 13:18.

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