neetoons/samp-super-roleplay
A SA:MP Roleplay gamemode made by Adri1 and now by Neetoons
Автор отправил этот репозиторий в архив, он больше не поддерживается.
README.md
An OPEN:MP roleplay gamemode originally written and released by Andri1, now maintained by Neetoons and contributors.
Features
Specifications & Usage
- Vehicle item system
- Customizable gangs with 100+ conquerable territories
- To get admin use /modget while logged in as RCON.
Systems
| Systems | Normal User | Super User |
|---|---|---|
| Jobs | 1 | 3 |
| Vehicles | 2 | 6 |
| Accessories | 1 | 10 |
| Properties | 1 | 4 |
| Objects | 1 | 10 |
Anticheat
24 cheats patched in total. Important: the "Warning" action notifies admins (not the cheater), so they can spectate. To configure anticheat in-game, be admin level 5 (owner), command is /ac.
The "Trigger" column shows how many detections within the given seconds trigger a warning or kick. For example, the "pos" cheat triggers on 3 detections within 10 seconds.
Economy Adjustment
Use the /eco command (admin level 5) to adjust in-game economy multipliers. For example, if the base vehicle price is $1,000 and the vehicle multiplier is set to 2, the price becomes $2,000.
Flake Usage (Nix)
This repository is a Nix flake. To use it:
Build the full server package
nix build
# Result is a fully-configured open.mp server in ./result
Run the server
nix run
Enter the development shell
nix develop
Inside the dev shell you'll have pawncc, YSI includes, and the formatting tools available:
cd gamemodes
pawncc -Dgamemodes -i../pawno/include -i$YSI_INCLUDE -d3 -Z "-(+" "-;+" srp.pwn
To compile the filterscript:
cd filterscripts
pawncc -Dfilterscripts -i../pawno/include -i$YSI_INCLUDE -Z "-(+" "-;+" maps.pwn
NixOS module
Import the module and enable the server:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
samp-super-roleplay.url = "github:neetoons/samp-super-roleplay";
};
outputs = { self, nixpkgs, samp-super-roleplay }: {
nixosConfigurations.my-server = nixpkgs.lib.nixosSystem {
modules = [
samp-super-roleplay.nixosModules.default
{
services.samp-server = {
enable = true;
hostname = "My RP Server";
port = 7777;
database = {
enable = true;
password = "my-db-password";
};
};
}
];
};
};
}
Key options:
| Option | Default | Description |
|---|---|---|
services.samp-server.enable | false | Enable the server service |
services.samp-server.hostname | "Super Roleplay" | Server name shown in browser |
services.samp-server.port | 7777 | Game port |
services.samp-server.database.enable | false | Spin up a local MariaDB instance |
services.samp-server.database.password | "" | Database password |
Development
Requirements
- San Andreas Multiplayer (SA:MP) / OPEN.MP
- Pawn Compiler 3.10.11
- MySQL
Plugins
| Plugin/Include | Version |
|---|---|
| MySQL | R41-4 |
| YSI-Includes | 5.10.0006 |
| Pawn.CMD | 3.4.0 |
| Pawn.Regex | 1.2.3 |
| Pawn.Raknet | 1.6.0 |
| Pawn.Plus | 1.5.1 |
| sscanf | 2.15.1 |
| streamer | 2.9.6 |
| MapAndreas | - |
Installation
- Download the latest release
- Compile maps.pwn as a filterscript.
- Create a MySQL database, for example "srp".
- Import srp_db.sql into the MySQL database.
- Configure the connection details in srp_db.ini
hostname = localhost
username = root
database = srp
password = 123
auto_reconnect = false
If using XAMPP no password is needed.
Database Schema
Note
Adri1: in case someone wants to edit it, here were my ideas for future versions:
- Businesses.
- House garages.
- Bank and store robberies with gangs.
Страница собрана из того, что GitHub публикует о репозитории. samp.directory не хранит этот код. Сообщить о проблеме с этой записью