SA-MP Forums Archive
Start client from C# with given ip, port, password (& nickname) - 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: Start client from C# with given ip, port, password (& nickname) (/showthread.php?tid=198865)



Start client from C# with given ip, port, password (& nickname) - kacperoo - 13.12.2010

Hi,

I am preparing a sa-mp launcher in C# and I need to start the game (really). I know that samp.exe does inject samp.dll and run gta_sa.exe with parameters (-z password, -n name...) but I don't know how to do it in C#.

I can also start samp.exe and pass it an IP, but i don't know that can I pass it nickname, password and other things that I need.

Thanks in advance,
Kacper


Re: Start client from C# with given ip, port, password (& nickname) - Ash. - 13.12.2010

Quote:
Originally Posted by kacperoo
Посмотреть сообщение
Hi,

I am preparing a sa-mp launcher in C# and I need to start the game (really). I know that samp.exe does inject samp.dll and run gta_sa.exe with parameters (-z password, -n name...) but I don't know how to do it in C#.

I can also start samp.exe and pass it an IP, but i don't know that can I pass it nickname, password and other things that I need.

Thanks in advance,
Kacper
Why would you want to do this in the first place? The SAMP client is perfectly fine as it is.


Re: Start client from C# with given ip, port, password (& nickname) - kacperoo - 13.12.2010

Downloading modpacks


Re: Start client from C# with given ip, port, password (& nickname) - kacperoo - 14.12.2010

So. Anybody?


Re: Start client from C# with given ip, port, password (& nickname) - TheXIII - 14.12.2010

The way we did it once was - launch samp.exe with IP and Password parameters. For nickname change it in registry.

Computer\HKEY_CURRENT_USER\Software\SAMP\PlayerNam e



Re: Start client from C# with given ip, port, password (& nickname) - ettans - 14.12.2010

Quote:
Originally Posted by funky1234
Посмотреть сообщение
Why would you want to do this in the first place? The SAMP client is perfectly fine as it is.
Perhaps he wants to make something that automatically connects to a server, when launched.

http://dotnetperls.com/process-start


Re: Start client from C# with given ip, port, password (& nickname) - kacperoo - 14.12.2010

Any idea with the password?


Re: Start client from C# with given ip, port, password (& nickname) - TheXIII - 14.12.2010

Quote:
Originally Posted by kacperoo
Посмотреть сообщение
Any idea with the password?
I think password is the second or third parameter for samp.exe? IP:PORT PASSWORD or IP PORT PASSWORD or something like that.


Re: Start client from C# with given ip, port, password (& nickname) - Shinki - 20.02.2013

Watch This:

[ame]http://www.youtube.com/watch?v=E3UjctZ6Mq4[/ame]


Re: Start client from C# with given ip, port, password (& nickname) - HellYeah - 27.12.2013

Quote:
Originally Posted by Shinki
Посмотреть сообщение
Its Private.