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
What it does | Available value | |
---|---|---|
Name | What will the mode be named? |
|
Interval | Duration of each mode? If Custom Modes is false, then the interval is disabled. |
|
Armor | ┌ What type of armor will players receive at spawn? | |
├ |
| |
├ |
| |
└ |
| |
OnlyHS | Count the headshot only? |
|
KnifeDamage | Will knife damage be enabled? |
|
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 |
|
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 |
|
SecondaryWeapons | List of available secondary weapons for the custom mode Leave blank for disable secondary weapons |
|
Utilities | List of available utilities for the custom mode. e.g. Grenades, Taser, Healtshot, etc.. Leave blank if you don't want any utilities |
|
ExecuteCommands | List of commands that will be execited when the mode starts Leave blank if you don't want any commands |
|
• Examples
Last updated