[Ru/Eng]: How to make the transition to the server via the launcher?
#1

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 с подключением к локальному серверу?

Можно ли примерный код, желательно на С#?
Reply
#2

Yes, but only iport 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);
}
Reply
#3

If you want to avoid messing with samp.exe browser, take a look here: https://github.com/Whitetigerswt/samp_launcher
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)