[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
#2

Helpful tool. You could create a web panel which uses this python script to easily control the server.
Reply
#3

CLI. Old times!

Great tool.
Reply
#4

Added installation instructions and more examples.
Reply
#5

This script can be now installed via pip (Python package manager):

Code:
pip install samp-server-cli
Reply
#6

Very useful for gamehosting companies to restrict users from using more slots than they paid for.
Rep
Reply
#7

Very nice !
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)