Este repositorio no tiene archivo de licencia. Se puede leer, pero eso por sí solo no da permiso para reutilizarlo.
README.md
SAMP-Roleplay
A full roleplay game mode for SAMP.
Runs on multiple platforms (Windows + Linux).
Install and Setup MySQL (or MariaDB)
[!NOTE] The gamemode requires having a local SQL server running. More information about the SQL here.
- As long as the server is running, the SQL server must be accessible.
Windows Setup
Compile Gamemodes and Scripts
cd pawno
bin\pawncc.exe "..\gamemodes\sources\roleplay.pwn" -i"include" -o"..\gamemodes\roleplay.amx"
# Compile filterscripts as needed
bin\pawncc.exe "..\filterscripts\sources\3DSpeedo.pwn" -i"include" -o"..\filterscripts\3DSpeedo.amx"
- This is the basic usage of
pawncccompiler. the Include directory contains all the files needed for pawn compilation, and some files solely used by Plugins.
Run Server
.\samp-server.exe
- Or just double click
samp-server.exe.
Linux Setup
Elevate executable files permissions
chmod +x samp03svr pawno/bin/pawncc
- Linux requires you to allow the files above to be executed.
Compile Gamemodes and Scripts
cd pawno
bin/pawncc "../gamemodes/sources/roleplay.pwn" -i"include" -o"../gamemodes/roleplay.amx"
# Compile filterscripts as needed
bin/pawncc "../filterscripts\sources\3DSpeedo.pwn" -i"include" -o"../filterscripts\3DSpeedo.amx"
- This is the basic usage of
pawncccompiler. the Include directory contains all the files needed for pawn compilation, and some files solely used by Plugins.
Run Server
(./samp03svr & tail -f server_log.txt)
- This runs
samp03svrand showsserver_log.txtat the same time (becausesamp03svrdoes not show logs automatically).
Consistent Server Runtime
[!TIP] If you want the server to remain active even after the window is closed, you need to create a service. This can be done by creating an
NSSMservice process in Windows, or asystemdservice file in Linux.
Windows (NSSM)
-
Run
nssminstall command:nssm install samp -
A GUI window opens, you should select the
samp-server.exeas the application and with correct directory.# Check the service status nssm status samp # Start, restart or stop the service nssm restart samp nssm stop samp
Linux (systemd)
-
Create
/etc/systemd/system/samp.servicefile:[Unit] Description=SAMP Server After=network.target [Service] Type=simple Restart=on-failure RestartSec=5s WorkingDirectory=/PATH/TO/SAMP-SERVER ExecStart=/bin/bash -c './samp03svr & tail -f server_log.txt' [Install] WantedBy=multi-user.target -
Edit the
/PATH/TO/SAMP-SERVERaccording to your absolute samp server directory. After that:# Enable the service to run on startup systemctl enable samp # Check the service status systemctl status samp # Or check its logs in real-time journalctl -u samp -f # Start, restart or stop the service systemctl restart samp systemctl stop samp
Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha