Creating Custom Modes
/addons/counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json
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
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
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
Last updated