Start client from C# with given ip, port, password (& nickname)
#1

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
Reply
#2

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.
Reply
#3

Downloading modpacks
Reply
#4

So. Anybody?
Reply
#5

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
Reply
#6

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
Reply
#7

Any idea with the password?
Reply
#8

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.
Reply
#9

Watch This:

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)