[Ru/Eng]: How to make the transition to the server via the launcher? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Client Support (
https://sampforum.blast.hk/forumdisplay.php?fid=16)
+--- Thread: [Ru/Eng]: How to make the transition to the server via the launcher? (
/showthread.php?tid=620118)
[Ru/Eng]: How to make the transition to the server via the launcher? -
Tuzyk - 26.10.2016
Hello. I've got a question. Is it possible to create a custom launcher with a fast connection to the SAMP server. As used samp_debug connecting to the local server?
Can I sample code in C #, it is desirable?
Перевод для русских разработчиков:
Всем привет. У меня появился вопрос. А можно ли создать собственный лаунчер с возможностью быстрого подключения к серверу SA:MP. Как это используется в samp_debug с подключением к локальному серверу?
Можно ли примерный код, желательно на С#?
Re: [Ru/Eng]: How to make the transition to the server via the launcher? -
yugecin - 26.10.2016
Yes, but only ip

ort unless you inject samp into gta yourself (see the next post)
Код:
ProcessStartInfo processStartInfo = new ProcessStartInfo(@"K:\Program Files (x86)\Rockstar Games\GTA San Andreas\samp.exe", "127.0.0.1:7777");
processStartInfo.CreateNoWindow = true;
processStartInfo.UseShellExecute = false;
Process process = new Process();
process.StartInfo = processStartInfo;
try
{
process.Start();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
Re: [Ru/Eng]: How to make the transition to the server via the launcher? -
Spmn - 28.10.2016
If you want to avoid messing with samp.exe browser, take a look here:
https://github.com/Whitetigerswt/samp_launcher