Data Communication
#1

Hello, friends. I'm developing an Anti-Cheater looking for files / processes in GTA San Andreas Player folder, and while this application is functional, but my goal is for the application to communicate with the gamemode file (.pwn).

Well, I have in mind that if the player does not load application (Launcher) he is unable to connect to the server, but I have no idea how I can call the application in pwn.

I had an idea that I would "write" one true / false value in a PHP page with the Anti-Cheater and then I was communicating with the application by the gamemode (.pwn) along with the include a_http would get page response catching true / false, but do not know how to do such a thing.

I ask everyone's help to achieve this, I know it's hard but a lot of people should know how to make the communication of the parties.

* I'm using ****** Translate *
Reply
#2

You can possibly allow your application to communicate with MySQL.
If the application is running, it could set a specific value to 1, and if the application is closed, reset it to 0.
Then you can simply query your database from within pawn and check that value.
If it's 1, allow the player to connect.
If it's 0, kick him upon connecting with an error-message.

Also, you could add the same to a timer that runs every 5 seconds or so.
Then you can detect if the player has ended his application while being connected and you can kick him.
Reply
#3

Most reasonable method would be to make a DLL which starts when SA game starts, and make it so it works just like an audio plugin.

But there is one problem, who gave you rights to check what files I have on my HDD ?
Reply
#4

Quote:
Originally Posted by ikey07
View Post
Most reasonable method would be to make a DLL which starts when SA game starts, and make it so it works just like an audio plugin.

But there is one problem, who gave you rights to check what files I have on my HDD ?
It would be a download that is required from this person's website, so you give them those rights by downloading their custom launcher/dll (as you can perfectly choose not to download it and not play on their server)

The problem with doing this is that 99% of potential players won't ever join your server because they can't be bothered downloading your custom software just to play on a server that they don't know is any good yet.
Reply
#5

Quote:
Originally Posted by ev0lution
View Post
It would be a download that is required from this person's website, so you give them those rights by downloading their custom launcher/dll (as you can perfectly choose not to download it and not play on their server)

The problem with doing this is that 99% of potential players won't ever join your server because they can't be bothered downloading your custom software just to play on a server that they don't know is any good yet.
My goal is that we only use this feature after the server get a good number of fixed players.

Quote:
Originally Posted by PowerPC603
View Post
You can possibly allow your application to communicate with MySQL.
If the application is running, it could set a specific value to 1, and if the application is closed, reset it to 0.
Then you can simply query your database from within pawn and check that value.
If it's 1, allow the player to connect.
If it's 0, kick him upon connecting with an error-message.

Also, you could add the same to a timer that runs every 5 seconds or so.
Then you can detect if the player has ended his application while being connected and you can kick him.
So I've heard by the means of MySQL, but I need a database. I was pessando to do with the use of sockets, make a connection to the socket and communicated with the pawn, but I do not know the use of this tool with the pawn language.
I was told also by means of a_http, which created a file with the name of the game and created a boolean and put its value to true / false.

Anyway, what is the easiest and most effective?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)