Creating Custom Modes
Last updated
Last updated
/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.
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"
]
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