Hello Folks,

Today I will be showing you how to create your own custom launcher for your own server. This is super easy.
We will be using C# in Windows Forms.(I am using Visual Studio 2013)

(If you don't understand what a launcher is, I will attach my personal one)

Why should I make a custom launcher for my server?

Custom launchers are a nice addition to your server, and If you do it right, It will look professional.

Advantages

-Good way to advertise server, only your server will be seen
-Easy to make, yet still looks good

Disadvantages

-Players need to download your tool to launch your server
-Some people might stay away from it thinking it's a virus..


What you need:

-Any version of Visual Studio that supports C# and Forms together
-3 minutes
-A server IP and Port

Step 1.

Launch Visual Studio, and create a new project. Name it whatever you like, such as 'RolePlay Launcher' or 'rLaunch' Then select the C# language (Visual C#) and choose Windows Forms Application.

Step 2.

Make your window the custom size, color etc you want. The better you make it, the better it will look
Make sure to add a button, and Rename it 'Play!' or 'Launch'

Step 3.

Double click the window(In the application you're making) and you will see the code. Find:
Code:
private void button1_Click(object sender, EventArgs e)
And change the whole Codeblock to this:

Code:
private void button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("samp://[IP]:[PORT]");
}
In my case, it would be:

Code:
private void button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("samp://75.127.13.245:7780");
}
This will tell the application to Open your specified IP, and launch the game.

Then pres F5 to compile your code, and it should come up without errors.

Step 4.(Optional)

If you have a website for your server make a 'Web Browser' Tool from the Toolbox window, and change the URL to your website link in 'Properties'.

Step 5.(Optional)

Upload to your website and let your users use it!

Once again, if you have a website, Upload your program to it, so your users can download it!



Hope I could help, thanks for reading!


~Excelize
Attached Files
File Type: zip LauncherDemo.zip (4.6 KB, 1050 views)
__________________
I left SA:MP, not active on forums anymore either. Might be on the forums once in a while. If you want to contact me, email me, or use my Skype name provided on my profile. And no, I'm not going to join your project, so please only contact me if you have something reasonably important to say.