server launcher help - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: General (https://forum.open.mp/forumdisplay.php?fid=19) --- Forum: Programming (https://forum.open.mp/forumdisplay.php?fid=56) --- Thread: server launcher help (/showthread.php?tid=705) |
server launcher help - unbelievable_10 - 2019-07-09 i want to put in this code server password so when player connects through button that launcher (.exe) writes password for him Code: ? ? ? private void button1_Click(object sender, EventArgs e) ? ? ? ?{ ? ? ? ? ? ?System.Diagnostics.Process.Start("samp://75.127.13.245:7780"); ? ? ? ?} RE: server launcher help - J_esus - 2019-07-12 ?Qu?? RE: server launcher help - Toretto - 2019-07-13 One topic is enough. RE: server launcher help - dakyskye - 2019-07-13 This is not?what launcher is meant to do. Launcher should inject samp.dll into gta_sa.exe process, not call samp?link. RE: server launcher help - Josh - 2019-07-13 You could always launch samp.exe and pass the following parameters: -h <IP> -p <PORT> -n <NAME> -z <PASSWORD> example: samp.exe -h 127.0.0.1 -p 7777 -n Josh -z MyL33tP4ssw0rd RE: server launcher help - BigETI - 2019-07-13 (2019-07-13, 08:53 PM)Josh Wrote: You could always launch samp.exe and pass the following parameters: That is incorrect. If command line arguments are given, "samp.exe" treats the first command line argument (separated by white space) as an IPv4 address with port separated by ":", if specified. If it fails to parse the command line argument string, it will still launch San Andreas Multiplayer and attempts to connect to ":7777", which is an invalid server IP address. Code: samp.exe -c -h 1.2.3.4 -p 1234 -n WTF results in where Code: sampcmd.exe -c -h 1.2.3.4 -p 1234 -n WTF results in Note that "-c" (empty RCON password) is required to make it work, because why wouldn't it just be optional instead? "sampcmd" just copies the command line arguments to the GTA San Andreas process, so "samp.dll" can parse them. RE: server launcher help - Josh - 2019-07-17 That works fine then. samp.exe 127.0.0.1:777 -n Legend -z MyL33tP4ssw0rd -c |