![sourcemod l4d2 glow for one player sourcemod l4d2 glow for one player](https://www.gamemaps.com/imgmgr/limit/img/addons/l4d/ss/screenspaceboomervomit_particula_18051_0.jpg)
If no admin level is specified for a base command it will default to the first argument of the "cmd" string. This can be done in admin_overrides.cfg (to assign flag letters to this command),Īnd/or in admin_groups.cfg (to give access to the command to a specified group or remove it from a group even though they have the flag) If the command doesn't exist you will need to add it to your overrides sections as if it was a normal command.
![sourcemod l4d2 glow for one player sourcemod l4d2 glow for one player](https://www.gamemaps.com/imgmgr/limit/img/addons/l4d2/ss/portal_2_shirt_rochelle_body_3142_0.jpg)
However if you have overridden sm_ban in one of your lower groups ("override" "allow" - in admin_groups.cfg). You use sm_ban as the admin level for a submenu, so anyone that can access sm_ban will also be able to access this menu option (By default this is admins with the 'ban' flag). If the command exists that section (or list option) will require the exact same access level as that command (including any overrides you have specified).Į.g. This command can be already existing (sm_ban) or completely imaginary (onlycrabscanusethis). So \" will let you add quotes to your strings.Īll 'admin' types now require a string command name. NB: You can use \ as an escape character. Example command sent if the user selected "Double" (through the player using FakeClientCommand) - 'sm_speed 2.0'.List of options like "Normal", "80%" etc.Selecting one of these would prompt a second menu titled "Speed Multiplier".Selecting it would prompt another menu titled: "Player/Team to Edit" containing a list of Groups and Player Names.This category would contain an option called : "Set Player Speed".Using the above as the contents of your adminmenu_custom.txt config file would create a new category option in the admin menu called 'Fun Commands'. 1* - x* - Admin level required to see this option (same as the rest of the admin types)Įxample Command "Commands".Text to be shown for parameter - only needed for 'list' type parameters (optional, above will be used as text if ommited) 1-x - List parameters - only needed for 'list' type parameters.title - To be shown for the parameter selection menu (optional).method - 'name', 'steamid', 'userid', 'userid2' (doesn't prepend the '#'), 'clientid', 'ip' - only needed for groupplayer/player menus - defaults to name.
![sourcemod l4d2 glow for one player sourcemod l4d2 glow for one player](https://i.ytimg.com/vi/dOXM6ChN8Q0/maxresdefault.jpg)
Path (including file name and extension) to the file containing a list of maps (straight text formatting like mapcycle.txt) - defaults to 'mapcycle.txt' path - Only required for type mapcycle.'onoff' - On or Off menu that sends the numbers 1/0 (good for cvars etc).'mapcycle' - Auto filled with the contents of your mapcycle file.'list' - Custom Defined list of Options.'groupplayer' - List of Groups + connected player.type - defaults to 'list' if not provided.1 - Information about parameter 1 (#1) - You need as many of these as you have parameters.execute - 'server' or 'player' - selects whether to execute as a client command or server command - defaults to 'player'.admin - admin level required to access the command - see Admin Levels.cmd - command to be executed (#1,#2 etc for parameters - no limit on these) Use to have the parameter sent without being surrounded by "quotes".
#Sourcemod l4d2 glow for one player how to#
See the Example Command and/or the attached Example Files for information on how to lay out your config file. Most are optional and have a default value if they are not found. These are all the parameters that can be specified to configure your menu. For more information see Admin Menu (SourceMod Scripting).Īdmins configure their menu using the config file (sourcemod/configs/adminmenu_custom.txt) and this is generated into a set of items and categories for the admin menu when the server starts. It is designed to be used as a complement to plugins adding themselves to the menu. The custom menu feature allows server admins to add new items to the SourceMod admin menu.