Установка через sampctl
sampctl package install nolict/hatch-openmp
Выполните в папке проекта. sampctl скачает пакет и его зависимости.
Зависит от 8 пакетов
README.md
Avenue Roleplay
Avenue Roleplay is a Pawn-based roleplay gamemode for SA-MP/open.mp. The project is being maintained as a modular codebase so gameplay features, commands, dialogs, data, and configuration stay easier to develop and review.
Requirements
- Linux server environment
- open.mp runtime
sampctl- MySQL server
- Plugins/runtime matching
config.json
Setup
Install Pawn dependencies:
sampctl ensure
Create local database configuration:
cp gamemodes/modules/core/settings/database.pwn.example gamemodes/modules/core/settings/database.pwn
Fill SQL_HOSTNAME, SQL_USERNAME, SQL_DATABASE, and SQL_PASSWORD for your database.
Build gamemode:
sampctl build
Run open.mp server from project root.
Configuration
Runtime server configuration lives in config.json, including server name, website, port, main script, and legacy plugins.
Database credentials live in gamemodes/modules/core/settings/database.pwn. This file is ignored by git. Do not commit real credentials. Use database.pwn.example as the shared template.
Development
- Gamemode entry point:
gamemodes/main.pwn - Feature implementation:
gamemodes/modules/ - Module guide:
docs/structure.md - Runtime config:
config.json
Keep feature logic out of main.pwn. Follow existing module patterns and split commands, dialogs, data, logic, settings, and world content by responsibility.
Contributing
- Create a branch for your change.
- Read
docs/structure.mdbefore adding features. - Place new files in the correct module domain.
- Do not commit credentials, logs, build artifacts, or local-only files.
- Run
sampctl buildbefore opening a pull request. - Explain what changed and how it was verified.
License
This project is licensed under the AGPL-3.0 License.
Страница собрана из того, что GitHub публикует о репозитории. samp.directory не хранит этот код. Сообщить о проблеме с этой записью