Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot General Programming server launcher help

 
  • 0 Vote(s) - 0 Average
server launcher help
unbelievable_10
Offline

Burgershot Member
Posts: 7
Threads: 4
Joined: Jun 2019
Reputation: 0
Location: Serbia
#1
2019-07-09, 05:15 PM
i want to put in this code server password so when player connects through button that launcher (.exe) writes password for him

Code:
      private void button1_Click(object sender, EventArgs e)
       {
           System.Diagnostics.Process.Start("samp://75.127.13.245:7780");
       }
J_esus
Offline

Burgershot Member
Posts: 19
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Unknown
#2
2019-07-12, 02:02 PM
¿Qué?
Toretto
Offline

Moderator

Posts: 40
Threads: 1
Joined: Apr 2019
Reputation: 4
#3
2019-07-13, 11:55 AM (This post was last modified: 2019-07-13, 11:56 AM by Toretto.)
One topic is enough.
dakyskye
Offline

open.mp Developer

Posts: 25
Threads: 4
Joined: Feb 2019
Reputation: 2
Location: Georgia
#4
2019-07-13, 06:16 PM (This post was last modified: 2019-07-13, 06:16 PM by dakyskye.)
This is not what launcher is meant to do. Launcher should inject samp.dll into gta_sa.exe process, not call samp link.
@dakyskye everywhere
Josh
Offline

Administrator

Posts: 129
Threads: 1
Joined: Feb 2019
Reputation: 20
#5
2019-07-13, 08:53 PM
You could always launch samp.exe and pass the following parameters:
-h <IP> -p <PORT> -n <NAME> -z <PASSWORD>

example:
samp.exe -h 127.0.0.1 -p 7777 -n Josh -z MyL33tP4ssw0rd
BigETI
Offline

open.mp Developer

Posts: 107
Threads: 5
Joined: Feb 2019
Reputation: 12
Location: Germany
#6
2019-07-13, 11:11 PM (This post was last modified: 2019-07-13, 11:23 PM by BigETI.)
(2019-07-13, 08:53 PM)Josh Wrote: You could always launch samp.exe and pass the following parameters:
-h <IP> -p <PORT> -n <NAME> -z <PASSWORD>

example:
samp.exe -h 127.0.0.1 -p 7777 -n Josh -z MyL33tP4ssw0rd

That is incorrect. If command line arguments are given, "samp.exe" treats the first command line argument (separated by white space) as an IPv4 address with port separated by ":", if specified. If it fails to parse the command line argument string, it will still launch San Andreas Multiplayer and attempts to connect to ":7777", which is an invalid server IP address.

Code:
samp.exe -c -h 1.2.3.4 -p 1234 -n WTF
results in
[Image: unknown.png]

where
Code:
sampcmd.exe -c -h 1.2.3.4 -p 1234 -n WTF
results in
[Image: unknown.png]

Note that "-c" (empty RCON password) is required to make it work, because why wouldn't it just be optional instead?
"sampcmd" just copies the command line arguments to the GTA San Andreas process, so "samp.dll" can parse them.
[Image: github-samp-icon.png]
Josh
Offline

Administrator

Posts: 129
Threads: 1
Joined: Feb 2019
Reputation: 20
#7
2019-07-17, 09:42 PM
[Image: tAY3wmW.png]

That works fine then.
samp.exe 127.0.0.1:777 -n Legend -z MyL33tP4ssw0rd -c
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode