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

# Starting a game

The installation was the most work. Now we are here to play!

{% hint style="info" %}
All assets for the gamemode are loaded once the plugin is active, but you need to manually enable the game mode to play it!
{% endhint %}

CS2CTF comes with a handy chat command. Simply type `!ctfmap mapname` and replace mapname with the map you want to play CTF, as example `!ctfmap de_dust2`. This will set the console variable `ctf_enabled 1` and reload the map.

After the restart, your map will be started with your game mode. CS2CTF ships with custom spawn and flag locations for all of the default active mission maps, so you do not have to worry about manually configuring those!

### Restarting the match

To restart your match, type `mp_restartgame 1` into your server console or use an RCON plugin to use a chat command.

### Manually Enabling/Disabling CTF

If you want to enable or disable CTF manually, you can do so by setting the console variable `ctf_enabled` to 0 or 1. Alternatively you can use the `!ctf` chat command which will toggle said console variable. A map restart is required after.

### The flags are not showing up

If you are playing on a custom map, the map may not have support for CTF. If you are just a server owner or player, check out the [Ingame Editor](/docs/getting-started/ingame-editor.md) which allows you to add support for any map. If you are a map maker, check out our [Map Integration Guide](/docs/map-making/integrating-your-map.md).&#x20;


---

# 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://cs2ctf.gitbook.io/docs/getting-started/starting-a-game.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.
