[Tool/Web/Other] sampcmd-go - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (
https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] sampcmd-go (
/showthread.php?tid=659447)
sampcmd-go -
BiosMarcel - 03.10.2018
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
https://github.com/Bios-Marcel/sampcmd-go
Commandline Usage
Code:
sampcmd-go.exe -h 127.0.0.1 -p 7777 -n Name
Golang usage
Code:
returnValue := sampcmd.LaunchSAMP("-h 127.0.0.1 -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
https://godoc.org/github.com/Bios-Ma...cmd-go/sampcmd.
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.
Credits
Big thanks to
BigETI for helping me on this one!
Re: sampcmd-go -
NelsonC - 03.10.2018
Good job.