> For the complete documentation index, see [llms.txt](https://docs.sourcefactory.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sourcefactory.eu/cs2-plugins/bombsite-restrict.md).

# Bombsite Restrict

{% hint style="info" %}
This plugin restricts the bombsites of each round if there are less than X players in teams.\
Designed for [CounterStrikeSharp](https://github.com/roflmuffin/CounterStrikeSharp/) framework.
{% endhint %}

### Configuration&#x20;

`configs/plugins/BombsiteRestrict/BombsiteRestrict.json`

|                                       | What it does                                                                                                                |
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `Minimum players`                     | Minimum number of players to disable random planting                                                                        |
| `Count bots as players`               | If bots will be counted as valid players (`true` or `false`)                                                                |
| `Disabled site`                       | Which bombsite will be disabled (`0` - Random , `1` - A , `2` - B)                                                          |
| `Which team count as players`         | It allows setting which team will be considered as the 'Minimum players'. (`0` - Both teams , `1` - Only CT , `2` - Only T) |
| `Send plant restrict message to team` | Which team gets a message when bombsite is disabled (`0` - Both teams , `1` - Only CT , `2` - Only T)                       |
| `Allow center message`                | Will be showed center message when is bombsite disabled? (`true` or `false`)                                                |

### Installation

1. Download the lastest release <https://github.com/NockyCZ/CS2_BombsitesRestrict/releases/latest>
2. Unzip into your servers `csgo/addons/counterstrikesharp/plugins/BombsiteRestrict/` dir
