[HELP] SA-MP special launcher for server
#8

The password part is not possible using conventional methods I believe.

Here's what I would do:

Once the user inputs their username (Eg: "Schurman") and password into the input boxes, generate a random alphanumerical string with a random size between 15 and 23 characters. Eg: NyjU66PHukobfcz09

When the user clicks "Join," send this string to a MySQL database or directly to the server, along with the username and hashed password entered by the user.

Edit the registry to set the player's name to "NyjU66PHukobfcz09"

Open SA-MP and join the server. When the user is connected to the server, grab the real username and password matching the key ("NyjU66PHukobfcz09").

Change the player's name (eg "NyjU66PHukobfcz09" to "Schurman") and log them in with the password that the server received from the launcher.


This is basically cheating and using the one available user-changeable SA-MP server parameter to send extra information to the server.

You could also use this method to set in-server settings in the launcher. Simply include them when you send the username and password to the server, and they can be retrieved when the user joins.

Since the keys would be visible for a small period of time after the player joins, you would want to make sure that the key expires shortly after the player joins, or even better, exactly when the player joins. This prevents malicious players from trying to join using another player's launcher-generated key.
Reply


Messages In This Thread
[HELP] SA-MP special launcher for server - by Zekiloni - 10.12.2014, 18:31
Re: [HELP] SA-MP special launcher for server - by Luis- - 10.12.2014, 19:06
Re: [HELP] SA-MP special launcher for server - by park4bmx - 10.12.2014, 19:38
Re: [HELP] SA-MP special launcher for server - by Cookland - 10.12.2014, 20:20
Re: [HELP] SA-MP special launcher for server - by Abagail - 10.12.2014, 21:14
Re: [HELP] SA-MP special launcher for server - by KingHual - 10.12.2014, 21:23
Re: [HELP] SA-MP special launcher for server - by Onfroi - 10.12.2014, 22:46
Re: [HELP] SA-MP special launcher for server - by SchurmanCQC - 10.12.2014, 22:56
Re: [HELP] SA-MP special launcher for server - by Zekiloni - 11.12.2014, 11:33
Re: [HELP] SA-MP special launcher for server - by Zeel - 11.12.2014, 13:14

Forum Jump:


Users browsing this thread: 1 Guest(s)