SourceFactory
Main PageDiscord
  • SourceFactory
  • Discord
  • Discord Utilities
    • â„šī¸Info
    • âš™ī¸Main Configuration
      • Linking System
      • Custom Bot Status
      • Custom Variables
    • 🧩Modules
      • Report (Calladmin)
      • Server Status
      • Event Notifications
      • RCON
      • Chat Relay
      • Manage Roles and Permissions
      • Connected Players Role
      • ⭐Skin Changer
      • ⭐Automatic Store 🛒
      • ⭐Player Stats
      • ⭐Server Status Plus
      • ⭐Banlist
      • ⭐Commands Blocker
      • ⭐Leaderboard
    • 📝Admin Commands
    • 🔠Available Variables
    • 📑Tutorials
      • 🤖Setting Up a Discord BOT
      • â„šī¸Custom Embeds Format
      • â„šī¸Buttons Settings
  • Deathmatch
    • â„šī¸Info
    • âš™ī¸Configuration
      • Creating Custom Modes
      • Weapons Restrict
      • Deatmatch Cvars
    • 🧩Modules
      • Limited Zones
    • 📝Commands
    • 🎒Weapons Selection
  • CS2 PLUGINS
    • ❌Reserved Slots
    • đŸ’ŖBombsite Restrict
  • PAID CS2 PLUGINS
    • âŗAuto Team Balance
    • đŸšĢWeapons Manager & Restriction
    • DU Addon: Skin Changer
    • DU Addon: Automatic Store
    • DU Addon: Player Stats
    • DU Addon: Server Status Plus
    • DU Addon: Commands Blocker
    • DU Addon: Leaderboard
Powered by GitBook
On this page
  • Parameters for custom modes
  • â€ĸ Examples
  1. Deathmatch
  2. Configuration

Creating Custom Modes

PreviousConfigurationNextWeapons Restrict

Last updated 4 months ago

/addons/counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json

  • The default mode is always , so even if you have CustomModes turned off in the config, the game will follow the data set for the mode with .

  • When creating a custom mode, pay attention to the mode ID. Modes must be consecutive starting from 0, and no numbers should be skipped; otherwise, an error will occur.

Parameters for custom modes

What it does
Available value

Name

What will the mode be named?

YOUR MODE NAME

Interval

Duration of each mode? If Custom Modes is false, then the interval is disabled.

seconds

Armor

┌ What type of armor will players receive at spawn?

├ 0 None

0

├ 1 Armor Only

1

└ 2 Armor and Helmet

2

OnlyHS

Count the headshot only?

true / false

KnifeDamage

Will knife damage be enabled?

true / false

RandomWeapons

true / false

CenterMessageText

You can use HTML codes

PrimaryWeapons

List of available primary weapons for the custom mode Leave blank for disable primary weapons

[ "weapon_name1",

"weapon_name2" ]

SecondaryWeapons

List of available secondary weapons for the custom mode Leave blank for disable secondary weapons

[ "weapon_name1",

"weapon_name2" ]

Utilities

List of available utilities for the custom mode. e.g. Grenades, Taser, Healtshot, etc.. Leave blank if you don't want any utilities

[ "weapon_hegrenade",

"weapon_taser" ]

ExecuteCommands

List of commands that will be execited when the mode starts Leave blank if you don't want any commands

[ "say Helloo :)",

"mp_friendlyfire 0",

"mp_swapteams" ]

â€ĸ Examples

Only AK47 & Headshot

IN THIS MODE, PLAYERS CAN USE ONLY AK47 AND CAN SHOOT ONLY HEADSHOT

  • Add this in your config file (counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json) and edit YOUR MODE ID for valid value

"YOUR MODE ID": {
    "Name": "Only AK47 & Headshot",
    "Interval": 300,
    "Armor": 1,
    "OnlyHS": true,
    "KnifeDamage": false,
    "RandomWeapons": false,
    "CenterMessageText": "<font class='fontSize-l' color='orange'>Only AK47 & Headshot</font>",
    "PrimaryWeapons": [
        "weapon_ak47"
    ],
    "SecondaryWeapons": [],
    "Utilities": [],
    "ExecuteCommands": []
}
Only AWP

IN THIS MODE, PLAYERS CAN USE ONLY AWP AND GET FLASH

  • Add this in your config file (counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json) and edit YOUR MODE ID for valid value

"YOUR MODE ID": {
    "Name": "Only AWP",
    "Interval": 300,
    "Armor": 1,
    "OnlyHS": false,
    "KnifeDamage": false,
    "RandomWeapons": false,
    "CenterMessageText": "<font class='fontSize-l' color='red'>Only AWP</font>",
    "PrimaryWeapons": [
        "weapon_awp"
    ],
    "SecondaryWeapons": [],
    "Utilities": [
        "weapon_flashbang"
    ],
    "ExecuteCommands": []
}
Only Shotguns with Random Weapons

IN THIS MODE, PLAYERS CAN USE ALL SHOTGUNS AND PLAYERS CANT SELECT THEIR WEAPONS (PLAYER WILL GET RANDOM SHOTGUN EVERY SPAWN)

  • Add this in your config file (counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json) and edit YOUR MODE ID for valid value

"YOUR MODE ID": {
    "Name": "Only Shotguns",
    "Interval": 300,
    "Armor": 2,
    "OnlyHS": false,
    "KnifeDamage": false,
    "RandomWeapons": true,
    "CenterMessageText": "<font class='fontSize-l' color='purple'>Only Shotguns</font>",
    "PrimaryWeapons": [
        "weapon_mag7",
        "weapon_sawedoff",
        "weapon_nova",
        "weapon_xm1014"
    ],
    "SecondaryWeapons": [],
    "Utilities": [],
    "ExecuteCommands": []
}
Only Rifles

IN THIS MODE, PLAYERS CAN USE ALL RIFLES EXPECT THE FAMAS AND GALILAR

  • Add this in your config file (counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json) and edit YOUR MODE ID for valid value

"YOUR MODE ID": {
    "Name": "Only Rifles",
    "Interval": 300,
    "Armor": 1,
    "OnlyHS": false,
    "KnifeDamage": true,
    "RandomWeapons": false,
    "CenterMessageText": "<font class='fontSize-l' color='orange'>Only Rifles</font>",
    "PrimaryWeapons": [
        "weapon_ak47",
        "weapon_m4a1",
        "weapon_m4a1_silencer",
        "weapon_aug",
        "weapon_sg556"
    ],
    "SecondaryWeapons": [],
    "Utilities": [],
    "ExecuteCommands": []
}

If you set this value to true, players won't be able to customize their weapons for this custom mode, and upon each spawn, they will receive a random weapon from primary/secondary weapons. Also, if is set to 0 or 1, players will still randomly get weapons

What message will be displayed in the center message during the mode Leave blank for disable the center message

âš™ī¸
<font class='fontSize-l' color='orange'>YOUR MODE</font>
ID 0
ID 0
Preview
Default Weapons