[Tool/Web/Other] Command line interface to SA-MP server
#1

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:

Code:
samp-server-cli -g grandlarc
Running a publicly accessible server with maxplayers 10 and RCON password "test":

Code:
samp-server-cli -g grandlarc -q -R test --maxplayers 10
Using filterscripts:

Code:
samp-server-cli -g grandlarc -f fsdebug -f gl_actions -f gl_realtime
Using plugins:

Code:
samp-server-cli -g grandlarc -d crashdetect -d streamer
Adding non-standard server.cfg options:

Code:
samp-server-cli -g grandlarc -d profiler -x some_option its_value
Using existing server.cfg file:

Code:
samp-server-cli --no-config
Reading command line arguments from a file:

Code:
samp-server-cli @filename
Other options

To see the complete list of command line options run "samp-server-cli -h".
Reply


Messages In This Thread
Command line interface to SA-MP server - by xeeZ - 01.08.2013, 09:12
AW: Command line interface to SA-MP server - by Mellnik - 01.08.2013, 10:05
Re: Command line interface to SA-MP server - by Red_Dragon. - 01.08.2013, 21:07
Re: Command line interface to SA-MP server - by xeeZ - 14.08.2014, 18:48
Re: Command line interface to SA-MP server - by xeeZ - 22.04.2015, 17:58
Re: Command line interface to SA-MP server - by feartonyb - 22.04.2015, 22:09
Re: Command line interface to SA-MP server - by Maximun - 24.04.2015, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)