← Skrypty i biblioteki
Bios-Marcel/sampcmd-go
Little tool to start SA-MP from within Go. This can also be used as a standalone executable.
Narzędzie★ 3zaktualizowano paź 2018MPL-2.0C
Otwórz na GitHubieREADME.md
sampcmd-go
This tool allows you to start SA-MP via the command line, alternatively it can be used as a go library.
Commandline Usage
sampcmd-go.exe -h 127.0.0.1 -p 7777 -n Name
Golang usage
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-Marcel/sampcmd-go/sampcmd.
Available parameters
-dEnables 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!
Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem