> For the complete documentation index, see [llms.txt](https://clans.gitbook.io/clans-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clans.gitbook.io/clans-docs/fight.md).

# Fight

### RU

Добавляет возможность вызывать другие кланы на битву.\
Лидер/заместитель (право `CLAN_PERM_SETTINGS`) может отправить вызов, указать ставку и длительность.\
Принимающая сторона: **Принять**, **Отклонить** или **Контр-предложение** (изменить ставку/время и отправить обратно).\
Победитель определяется по очкам за убийства за указанный срок.

Режимы битвы:

* **Со ставкой** - оба клана замораживают сумму, победитель забирает обе. Можно "ва-банк".
* **Без ставки** - приз победителю: `очки × множитель` из конфига.
* Ничья (включая 0:0) - ставки возвращаются.

Подсчёт очков (`count_mode` в конфиге):

* `enemy_only` - только убийства игроков клана-противника
* `any` - любые убийства/смерти членов клана-участника

Ручной ввод чисел через чат: `!stake <число>`, `!duration <минуты>` (после нажатия "Ввести значение" в меню).

Необходимо настроить под свой проект конфиг:\
`addons/configs/Clans/fight.ini`

### EN

Adds the ability to challenge other clans to a battle.\
The leader/deputy (with `CLAN_PERM_SETTINGS` permission) can send a challenge, specifying stake and duration.\
The receiving side: **Accept**, **Decline**, or **Counter-offer** (modify stake/time and send back).\
The winner is determined by kill points within the given timeframe.

Battle modes:

* **With stake** - both clans freeze the amount, the winner takes both. "All-in" supported.
* **Without stake** - winner reward: `score × multiplier` from config.
* Draw (including 0:0) - stakes are refunded.

Point counting (`count_mode` in config):

* `enemy_only` - only kills of enemy-clan players
* `any` - any kills/deaths by participating clan members

Manual input via chat: `!stake <number>`, `!duration <minutes>` (after pressing "Enter value" in the menu).

Configure it for your project in:\
`addons/configs/Clans/fight.ini`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://clans.gitbook.io/clans-docs/fight.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
