> For the complete documentation index, see [llms.txt](https://docs.cuxial.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cuxial.com/scripts/es/nucleo/cuxial-safezones/commands.md).

# Comandos y permisos

El comando de Cuxial Safezones, las teclas del editor de zonas y los permisos que necesita el staff.

Cuxial Safezones tiene un único comando, para el staff. Los jugadores no tienen comandos: las zonas se les aplican solas.

## Comandos

| Comando      | Quién                           | Qué hace                |
| ------------ | ------------------------------- | ----------------------- |
| `/crearzona` | Staff con los permisos de abajo | Abre el panel de zonas. |

{% hint style="info" %}
El nombre del comando sale de `command.name` en `shared/config.lua`.
{% endhint %}

## Panel

| Sección  | Qué hace                                                                                                                    |
| -------- | --------------------------------------------------------------------------------------------------------------------------- |
| Zonas    | Lista las zonas. Selecciona una para editar sus ajustes, renombrarla, apagarla o encenderla, dibujar su volumen o borrarla. |
| Crear    | Define el nombre y las reglas, y luego abre el editor para dibujar la zona.                                                 |
| Registro | Muestra quién creó cada zona y cuándo se cambió por última vez.                                                             |

Una zona apagada sigue en el panel con su trazado y sus ajustes, pero no se aplica a nadie.

{% hint style="info" %}
Para cambiar la forma de una zona, bórrala y dibújala de nuevo. Sus reglas, su cartel y sus excepciones se editan en cualquier momento.
{% endhint %}

## Teclas del editor

El editor usa una cámara libre. Estas teclas son fijas.

| Tecla                                               | Qué hace                                                                |
| --------------------------------------------------- | ----------------------------------------------------------------------- |
| <kbd>W</kbd> <kbd>A</kbd> <kbd>S</kbd> <kbd>D</kbd> | Mueve la cámara.                                                        |
| <kbd>Q</kbd> / <kbd>E</kbd>                         | Sube / baja la cámara.                                                  |
| <kbd>Shift</kbd> / <kbd>Alt</kbd>                   | Cámara más rápida / más lenta.                                          |
| Clic izquierdo                                      | Coloca un vértice donde apuntas. El suelo de la zona pasa a esa altura. |
| Clic derecho                                        | Quita el último vértice.                                                |
| Rueda del ratón                                     | Sube o baja el techo, un metro por paso.                                |
| <kbd>↑</kbd> <kbd>↓</kbd>                           | Sube o baja el suelo, un metro por paso.                                |
| <kbd>Intro</kbd>                                    | Cierra la zona y la guarda. Necesita al menos 3 vértices.               |
| <kbd>Retroceso</kbd>                                | Cancela.                                                                |

## Permisos

| Acción                                                      | Requisito                               |
| ----------------------------------------------------------- | --------------------------------------- |
| Ejecutar `/crearzona`                                       | ACE `command.crearzona`                 |
| Crear, editar, renombrar, apagar, dibujar o borrar una zona | ACE `admin` (el valor de `command.ace`) |

{% code title="server.cfg" %}

```cfg
add_ace group.admin admin allow
add_ace group.admin command.crearzona allow
```

{% endcode %}

El servidor comprueba el ACE `admin` en cada cambio, así que abrir el panel no basta para modificar una zona. Cada miembro del staff puede guardar hasta 12 cambios cada 10 segundos (`limits` en el config).

Las excepciones dentro de una zona no son permisos de staff. Se definen por zona en el panel: consulta [Configuración](/scripts/es/nucleo/cuxial-safezones/configuration.md#excepciones).


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.cuxial.com/scripts/es/nucleo/cuxial-safezones/commands.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
