> For the complete documentation index, see [llms.txt](https://docs.sourcefactory.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sourcefactory.eu/deathmatch/configuration.md).

# Configuration

{% hint style="danger" %}
**`/addons/counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json`**
{% endhint %}

<details>

<summary>Database Connection</summary>

> If you want to enable "**Save Players Weapons**" (used to save players' weapons for individual modes), you must configure the database connection.<br>
>
> Fill in all the details and use one of the following options for SslMode:

* **`Preferred`** - Use SSL if the server supports it (default)
* **`None`** - Do not use SSL
* **`Required`** - Always use SSL, deny connection if server does not support SSL Does not validate CA or hostname
* **`VerifyCA`** - Always use SSL, validates the CA but tolerates hostname mismatch
* **`VerifyFull`** - Always use SSL, validates CA and hostname

</details>

<details>

<summary><strong>Gameplay Settings</strong></summary>

<table data-full-width="true"><thead><tr><th width="178"> </th><th width="333">What it does</th><th>Available values</th></tr></thead><tbody><tr><td><mark style="color:purple;"><strong>Free For All</strong></mark></td><td>If the game will be FFA or Team</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Custom Modes</strong></mark></td><td>Allow the custom modes (multicfg)? </td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Random Selection Of Modes</strong></mark></td><td>Will the modes be selected randomly?</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Map Start Custom Mode</strong></mark></td><td>Which custom mode will the map start with?</td><td><mark style="color:blue;"><code>ID</code></mark><code> of mode from</code> <a href="/deathmatch/configuration/creating-custom-modes.md"><code>custo modes</code></a></td></tr><tr><td><mark style="color:purple;"><strong>New Mode Countdown</strong></mark></td><td>At what second does the countdown for the new mode appear?</td><td><mark style="color:blue;"><code>seconds</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Hud Type</strong></mark></td><td><code>0</code> - Center (Html is not supported) - Below<br><code>1</code> - CenterHtml - Above</td><td><mark style="color:blue;"><code>0</code></mark> or <mark style="color:blue;"><code>1</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Default Weapons</strong></mark></td><td>┌ What weapons will a player get if he doesn't have any weapons configured?</td><td></td></tr><tr><td></td><td>├ <code>0</code> - The first weapon from the list (That can be in <a href="/deathmatch/configuration/weapons-restrict.md">restrictions</a>)</td><td><mark style="color:blue;"><code>0</code></mark></td></tr><tr><td></td><td>├ <code>1</code> - The first weapon from the list (That is not in <a href="/deathmatch/configuration/weapons-restrict.md">restrictions</a> at all)</td><td><mark style="color:blue;"><code>1</code></mark></td></tr><tr><td></td><td>├ <code>2</code> - A random weapon from the list (That is not in <a href="/deathmatch/configuration/weapons-restrict.md">restrictions</a> at all)</td><td><mark style="color:blue;"><code>2</code></mark></td></tr><tr><td></td><td>└ <code>3</code> - A random weapon from the list (That can be in <a href="/deathmatch/configuration/weapons-restrict.md">restrictions</a>)</td><td><mark style="color:blue;"><code>3</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Switch Weapons</strong></mark></td><td>When a player sets up a new weapons, if it will be changed immediately or only on the next respawn</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Allow Buymenu</strong></mark></td><td>Enable weapon settings via buymenu?</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Use Default Spawns</strong></mark></td><td>Use default spawns on maps?</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Respawn Players After New Mode</strong></mark></td><td>Respawn all players at the start of a new mode?</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Fast Weapon Equip</strong></mark></td><td>Players will be able to shoot immediately upon spawning</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Spawn Protection Color</strong></mark></td><td>Leave blank for none</td><td>Hex color, e.g. <mark style="color:blue;"><code>#0099ff</code></mark></td></tr></tbody></table>

</details>

<details>

<summary><strong>Spawn System</strong></summary>

<table><thead><tr><th width="189"></th><th width="331">What it does</th><th>Available values</th></tr></thead><tbody><tr><td><mark style="color:purple;"><strong>Spawns Method</strong></mark></td><td><code>0</code> - Custom Spawns</td><td></td></tr><tr><td></td><td><code>1</code> - Default Spawns (But separation, visibility and distance will be controlled if set)</td><td></td></tr><tr><td></td><td><code>2</code> - Default spawn system from the game will simply be used (No functions will be controlled, such as separation, visibility and distance)</td><td></td></tr><tr><td><mark style="color:purple;"><strong>Team Spawns Separation</strong></mark></td><td>This means that spawns will not be divided by teams (e.g., a CT player can spawn on a spawn point designated for the T team)</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Check Spawn Visibility</strong></mark></td><td>Line Of Sight (LOS), if a spawn can be used when a player sees it</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Distance From Enemies</strong></mark></td><td>What is the minimum distance a spawn must be away from players for the spawn to be allowed</td><td><mark style="color:blue;"><code>number</code></mark><br>- You can use the css_dm_checkdistance command to check</td></tr></tbody></table>

</details>

<details>

<summary><strong>General Settings</strong></summary>

<table data-full-width="true"><thead><tr><th width="187"> </th><th width="337">What it does</th><th>Available values</th></tr></thead><tbody><tr><td><mark style="color:purple;"><strong>Display Spawns Editor In Menu</strong></mark></td><td>Display the Spawns Editor in the Deathmatch Menu? (/dm , /deathmatch)</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Hide Round Seconds</strong></mark></td><td>Display the round timer?</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Hide New Mode Countdown</strong></mark></td><td></td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Block Radio Messages</strong></mark></td><td>Block radio messages?</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Block Player Ping</strong></mark></td><td>Block player ping?</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Block Player ChatWheel</strong></mark></td><td>Block player chatwheel ping?</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Remove Breakable Entities</strong></mark></td><td>Remove breakable entities at the round start?</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Remove Decals</strong></mark></td><td>Remove all decals upon player death? (Blood)</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Remove Kill Points Message</strong></mark></td><td>When enabled, kill point messages will be disabled while the server is running the deathmatch gamemode</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Remove Respawn Sound</strong></mark></td><td>When enabled, respawn sound will be disabled while the server is running the deathmatch gamemode</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Force Map End</strong></mark></td><td>Force end of round when timeleft is less than 0</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Restart Map On Plugin Load</strong></mark></td><td>Useful for servers that use multimod, for example when switching from Retake to Deathmatch mode</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr></tbody></table>

</details>

<details>

<summary>Sounds Settings</summary>

> Players can change the volume using the console command snd\_toolvolume

<table data-full-width="true"><thead><tr><th width="215"> </th><th>What it does</th><th>Path to the Sound</th></tr></thead><tbody><tr><td><mark style="color:purple;"><strong>Weapon Cant Equip Sound</strong></mark></td><td>Which sound is played when a player tries to set a disabled/restricted weapon</td><td><mark style="color:blue;"><code>sounds/ui/weapon_cant_buy.vsnd_c</code></mark><br>- Leave blank to disable</td></tr><tr><td><mark style="color:purple;"><strong>New Mode Sound</strong></mark></td><td>Which sound is played when a new mode starts</td><td><mark style="color:blue;"><code>sounds/music/3kliksphilip_01/bombtenseccount.vsnd_c</code></mark><br>- Leave blank to disable</td></tr></tbody></table>

</details>

<details>

<summary>Custom Commands</summary>

<table><thead><tr><th width="181"> </th><th width="253">What it does</th><th width="262">Examples</th></tr></thead><tbody><tr><td><mark style="color:purple;"><strong>Deatmatch Menu Commands</strong></mark></td><td>Create your own commands for the open deathmatch menu</td><td><mark style="color:green;"><code>dm,deathmatch</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Weapons Select Commands</strong></mark></td><td>Create your own commands for select weapons</td><td><mark style="color:green;"><code>gun,weapon,w,g</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Weapons Select Shortcuts</strong></mark></td><td>Create your own shortcut commands for select weapons</td><td><mark style="color:blue;"><code>weapon_name:shortcut</code></mark> <br>Example: <mark style="color:green;"><code>weapon_ak47:ak</code></mark></td></tr></tbody></table>

</details>

<details>

<summary>Players Gameplay Settings</summary>

> Section is divided into VIP and NonVIP players (VIP players are those who have the flag you set in VIP Flag)

<table data-full-width="false"><thead><tr><th> </th><th>What it does</th><th>Available values</th></tr></thead><tbody><tr><td><mark style="color:purple;"><strong>VIP Flag</strong></mark></td><td>Flag for VIP players</td><td><mark style="color:blue;"><code>@YOUR_FLAG</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Respawn Time</strong></mark></td><td>How long does it take to respawn a player?</td><td><mark style="color:blue;"><code>float</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Spawn Protection Time</strong></mark></td><td>How long will the spawn protection be?</td><td><mark style="color:blue;"><code>float</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Refill Ammo Kill</strong></mark></td><td>Refill ammo when a player eliminates someone?</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Refill Ammo Headshot</strong></mark></td><td>Refill ammo when a player eliminates someone with headshot?</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Refill Ammo in All Weapons</strong></mark></td><td>This means that if Refill Ammo Kill/Headshot is enabled, all player's weapons will be refilled</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Refill Health Kill</strong></mark></td><td>How much health does a player regenerate when they eliminate someone?</td><td><mark style="color:blue;"><code>number</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Refill Health Kill Headshot</strong></mark></td><td>How much health does a player regenerate when they eliminate someone with headshot?</td><td><mark style="color:blue;"><code>number</code></mark></td></tr></tbody></table>

</details>

<details>

<summary>Client Preferences Settings</summary>

> Players can change the volume using the console command snd\_toolvolume\
> Players can customize their preferences

<table><thead><tr><th width="227"> </th><th width="267">What it does</th><th> </th></tr></thead><tbody><tr><td><mark style="color:purple;"><strong>Enabled</strong></mark></td><td>Will this preference be allowed? </td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Sound path</strong></mark></td><td>The path to the music file</td><td>Leave blank for disable</td></tr><tr><td><mark style="color:purple;"><strong>Default value</strong></mark></td><td>What is the default value when a player connects</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr><tr><td><mark style="color:purple;"><strong>Only for VIP</strong></mark></td><td>If this preference is only for VIPs, normal players will not be able to use it</td><td><mark style="color:green;"><code>true</code></mark> / <mark style="color:red;"><code>false</code></mark></td></tr></tbody></table>

</details>

{% content-ref url="/pages/YGXFEmd7UsObBCmTOFUW" %}
[Creating Custom Modes](/deathmatch/configuration/creating-custom-modes.md)
{% endcontent-ref %}

{% content-ref url="/pages/AqxSmXQTqM59TZa9sMAE" %}
[Weapons Restrict](/deathmatch/configuration/weapons-restrict.md)
{% endcontent-ref %}

{% content-ref url="/pages/UHpVxZCKEJnBuXQdC15m" %}
[Deatmatch Cvars](/deathmatch/configuration/deatmatch-cvars.md)
{% endcontent-ref %}
