[Q] Launcher?
#1

Hi all,

first of all,

excuse me if i post into the wrong section.

I would like to know, how could i do,

to make an launcher for my server.

A launcher who will detect if ****** or another cheat is installed. In the case of there are, the launcher won't be able to to connect to my server. The launcher won't send the server password to samp.exe

and is there aren't, he will send the password to be able to connect

Thank you

Max
Reply
#2

you have to create c++ client app (or any other language) that will connect to your server app and check if it is online and gather information, then it will find GTA SA installed in user's computer and try to find some hacks (you have to do it on your own, to check if there are any other files than default GTA files and then compare them with some files u've marked as "hacks"), if it will find any hack user won't be able to press "start" button, otherwise, if it won't detect anything, you should start SAMP with connect parameter to your server IP+port and password (if there is any)

edit:

the client app(launcher) should work like this:

1. start launcher
2. launcher connects to server app
3. can connect to server app?
3a. no: Disable "Launch" button
3b. yes: do we know where is GTA SA Installed?
3ba. no: let's ask the user
3bb. yes: are there any other files than default GTA SA files?
3bba. no: start SAMP and connect to server with password via argument
3bbb. yes: get name of the 'blocked' files from server, do user have at least one of those files?
3bbba. no: goto: 3bba
3bbbb. yes: disable "Launch" button
Reply
#3

Ok thank you for you quick andwer, do you know if there is some tuto?

Max
Reply
#4

Quote:
Originally Posted by scott1
Посмотреть сообщение
Ok thank you for you quick andwer, do you know if there is some tuto?

Max
this is kinda advanced programming using winsockets, there is bunch of tutorials for this, but if u never touched c++ you're going to have a bad time

http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
Reply
#5

Ok thank you, i may use VB, more easy

Max
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)