Greetings SA-MP community, as i had more free time decided to make another release, an accessible in game database that also detects multi-accounting in a way.
READ BEFORE GOING THROUGH THE POST!!!!!!
1- i do NOT care if you think dini is slow
2- i do NOT care if you can do this in a more optimized way
3- i do NOT care if you think that this isn't a filterscript/useful code/well optimized coded
//==//
^^^ Posted in the manner to point out the childish comments only, mature creative criticism is indeed accepted.
-----------
Agreeing to that, go on to the post, any comments relevant to the statements above will be 100% ignored.
ALTHOUGH, i don't mind useful comments, if you see that i missed something, did something in a wrong way or could've done it better, simply point it out, tell me where i went wrong and/or where i could've done better i will include ur name in the post and the code u helped me at and on top of that thank you.
If anyone has any suggestions just mention them below and i'll look at them and do them if i'm able to code/time wise.
Simply put all this does is the following: catching player's data in a file called Database in scriptfiles under their name, records player ip, hardware id, name, changing hardware id , changing ip and the player's client version. Afterwards, it saves them in a file, also saves the player's LAST connected time through OnPlayerDisconnect, ALSO it gives u the ability to detect multiaccounters explained by the following:
When you try catching a value through a name using dini you save it under like Password: 1234,
what was used here is the reversed mode, saving the player's ip,hardware id then putting his name next to it and constantly checking if that ip /hardware id exists before and adding names/new hardware ids/ips if they didn't exist before, all of this can be viewed THROUGH THE GAME by doing a /getpstats [playername] command.
PLEASE NOTE THAT: player's who haven't connected after u implement this in your script won't get recorded, the system works onplayerconnect.
YOU MUST create 4 files ,A FOLDER CALLED MultiAccountersBase (IN SCRIPTFILES) AND PUT IN THAT TWO .TXT FORMAT FILES, FIRST: haka.txt AND SECOND: aka.txt AND CREATE A FOLDER NAMED Database(IN SCRIPTFILES)
And as stated above, simply login, login as rcon because thats the admin system used in my script, u can change that, do /getpstats [playername] and you'll get a dialog containing his stats, note that onplayerconnect first time the changing hardware id/changing ip will equal the constant ones and always will until the player changes either and connects ( makes sense? ).
WARNING: the hardware id matching detection function is not very accurate as it can match up too many users who aren't related, but it's there just for doubts, the IP one is WAY more recommended to be used as a constant multi-account detector.
SOURCE THROUGH PASTEBIN:
https://pastebin.com/jSG4m5L0
=======================
Anyone is free to edit this as they want there's also no need for credits as i don't really care about that either, if you find any bugs which i doubt you'd cuz i already tested it, kindly report them in the comments and i'll reply with a fix, thanks and hope you enjoy it explained and widened on the pastebin, done files attached, NUMBER OF LINES(attached files): 60,NUMBER OF LINES PASTEBIN: 105, 4 INCLUDES, 3 DEFINITIONS, 2 FUNCTIONS, 1 CMD .
EDIT: UPDATED.
PIC:
(of course i hid my values but on yours will give you your wanted values.)
READ BEFORE GOING THROUGH THE POST!!!!!!
1- i do NOT care if you think dini is slow
2- i do NOT care if you can do this in a more optimized way
3- i do NOT care if you think that this isn't a filterscript/useful code/well optimized coded
//==//
^^^ Posted in the manner to point out the childish comments only, mature creative criticism is indeed accepted.
-----------
Agreeing to that, go on to the post, any comments relevant to the statements above will be 100% ignored.
ALTHOUGH, i don't mind useful comments, if you see that i missed something, did something in a wrong way or could've done it better, simply point it out, tell me where i went wrong and/or where i could've done better i will include ur name in the post and the code u helped me at and on top of that thank you.
If anyone has any suggestions just mention them below and i'll look at them and do them if i'm able to code/time wise.
What does this do?
Simply put all this does is the following: catching player's data in a file called Database in scriptfiles under their name, records player ip, hardware id, name, changing hardware id , changing ip and the player's client version. Afterwards, it saves them in a file, also saves the player's LAST connected time through OnPlayerDisconnect, ALSO it gives u the ability to detect multiaccounters explained by the following:
When you try catching a value through a name using dini you save it under like Password: 1234,
what was used here is the reversed mode, saving the player's ip,hardware id then putting his name next to it and constantly checking if that ip /hardware id exists before and adding names/new hardware ids/ips if they didn't exist before, all of this can be viewed THROUGH THE GAME by doing a /getpstats [playername] command.
PLEASE NOTE THAT: player's who haven't connected after u implement this in your script won't get recorded, the system works onplayerconnect.
HOW TO USE:
YOU MUST create 4 files ,A FOLDER CALLED MultiAccountersBase (IN SCRIPTFILES) AND PUT IN THAT TWO .TXT FORMAT FILES, FIRST: haka.txt AND SECOND: aka.txt AND CREATE A FOLDER NAMED Database(IN SCRIPTFILES)
And as stated above, simply login, login as rcon because thats the admin system used in my script, u can change that, do /getpstats [playername] and you'll get a dialog containing his stats, note that onplayerconnect first time the changing hardware id/changing ip will equal the constant ones and always will until the player changes either and connects ( makes sense? ).
WARNING: the hardware id matching detection function is not very accurate as it can match up too many users who aren't related, but it's there just for doubts, the IP one is WAY more recommended to be used as a constant multi-account detector.
SOURCE THROUGH PASTEBIN:
https://pastebin.com/jSG4m5L0
=======================
Anyone is free to edit this as they want there's also no need for credits as i don't really care about that either, if you find any bugs which i doubt you'd cuz i already tested it, kindly report them in the comments and i'll reply with a fix, thanks and hope you enjoy it explained and widened on the pastebin, done files attached, NUMBER OF LINES(attached files): 60,NUMBER OF LINES PASTEBIN: 105, 4 INCLUDES, 3 DEFINITIONS, 2 FUNCTIONS, 1 CMD .
EDIT: UPDATED.
PIC:
(of course i hid my values but on yours will give you your wanted values.)