SA-MP Forums

Go Back   SA-MP Forums > SA-MP > Client Support

Reply
 
Thread Tools Display Modes
Old 26/10/2016, 02:19 PM   #1
Tuzyk
Little Clucker
 
Join Date: Oct 2016
Posts: 1
Reputation: 0
Question [Ru/Eng]: How to make the transition to the server via the launcher?

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

Можно ли примерный код, желательно на С#?
Tuzyk is offline   Reply With Quote
Old 26/10/2016, 03:25 PM   #2
yugecin
Big Clucker
 
Join Date: Oct 2009
Location: Belgium
Posts: 83
Reputation: 82
Default Re: [Ru/Eng]: How to make the transition to the server via the launcher?

Yes, but only iport unless you inject samp into gta yourself (see the next post)

Code:
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);
}
__________________
robin_be

Last edited by yugecin; 31/10/2016 at 08:14 AM.
yugecin is offline   Reply With Quote
Old 28/10/2016, 12:01 PM   #3
Spmn
Gangsta
 
Join Date: Jun 2015
Location: Romania
Posts: 543
Reputation: 131
Default Re: [Ru/Eng]: How to make the transition to the server via the launcher?

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Launcher of the server Hayran_Tavares General 1 16/04/2015 07:40 AM
[Tool/Web/Other] Launcher for your server. IncreEngine Filterscripts 7 28/01/2013 03:07 AM
Server.cfg Launcher Shoulen Server Support 0 19/01/2012 01:00 PM
How to transition from a outdated 0.3b server to a 0.3c server? Dogbox Help Archive 9 18/01/2011 05:02 PM
How To make samp Launcher xinix000 Help Archive 9 05/10/2010 04:02 PM


All times are GMT. The time now is 08:57 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.