Creating Custom Modes

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

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

  • 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 doesAvailable 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

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 Default Weapons is set to 0 or 1, players will still randomly get weapons

true / false

CenterMessageText

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

You can use HTML codes

<font class='fontSize-l' color='orange'>YOUR MODE</font>

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": []
}

Last updated