SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Tools and Files

Thread Tools Display Modes
Old 03/10/2018, 03:53 PM   #1
Join Date: Jul 2012
Location: Germany
Posts: 1,227
Reputation: 234
Default sampcmd-go


This tool allows you to start SA-MP via the command line, alternatively it can be used as a go library.

GitHub Repository

Commandline Usage

sampcmd-go.exe -h -p 7777 -n Name
Golang usage

returnValue := sampcmd.LaunchSAMP("-h -p 7777 -n Name")
if(returnValue != 0) {
    fmt.Printf("An error occured. The application returned %d", returnValue)
For all available functions, check the documentation at

Available parameters
  • -d
    > Enables the debugging mode.
  • -c <RCON password>
    > Passes an RCON password to directly login as RCON administrator.
  • -h <IP address / hostname>
    > Specifies the server that you want to join.
  • -p <port>
    > Specified the servers port.
  • -n <name>
    > Specifies the ingame username.
  • -z <server password>
    > Specifies a password necessary to join the server.


Big thanks to BigETI for helping me on this one!
BiosMarcel is offline   Reply With Quote
Old 03/10/2018, 03:58 PM   #2
Huge Clucker
NelsonC's Avatar
Join Date: Oct 2017
Location: Germany
Posts: 224
Reputation: 12
Default Re: sampcmd-go

Good job.
NelsonC is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT. The time now is 04:29 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.