01.08.2013, 09:12
(
Last edited by xeeZ; 07/01/2015 at 08:20 AM.
)
WARNING: Back up your server.cfg before running this script!
This is a Python script that lets you easily run your server from the command line without ever touching server.cfg.
Installation
1. Install Python and it to PATH.
2. Go to https://github.com/Zeex/samp-server-cli.
3. Click "Download ZIP".
4. Extract the contents to some folder, for example, C:\samp-server\cli.
5. Set SAMP_SERVER_ROOT environment variable to your SA-MP server's root directory, e.g. C:\samp-server.
6. Add C:\samp-server\cli\bin to your PATH (optional).
Examples
Running a gamemode with default settings:
Running a publicly accessible server with maxplayers 10 and RCON password "test":
Using filterscripts:
Using plugins:
Adding non-standard server.cfg options:
Using existing server.cfg file:
Reading command line arguments from a file:
Other options
To see the complete list of command line options run "samp-server-cli -h".
This is a Python script that lets you easily run your server from the command line without ever touching server.cfg.
Installation
1. Install Python and it to PATH.
2. Go to https://github.com/Zeex/samp-server-cli.
3. Click "Download ZIP".
4. Extract the contents to some folder, for example, C:\samp-server\cli.
5. Set SAMP_SERVER_ROOT environment variable to your SA-MP server's root directory, e.g. C:\samp-server.
6. Add C:\samp-server\cli\bin to your PATH (optional).
Examples
Running a gamemode with default settings:
Code:
samp-server-cli -g grandlarc
Code:
samp-server-cli -g grandlarc -q -R test --maxplayers 10
Code:
samp-server-cli -g grandlarc -f fsdebug -f gl_actions -f gl_realtime
Code:
samp-server-cli -g grandlarc -d crashdetect -d streamer
Code:
samp-server-cli -g grandlarc -d profiler -x some_option its_value
Code:
samp-server-cli --no-config
Code:
samp-server-cli @filename
To see the complete list of command line options run "samp-server-cli -h".