SA-MP Forums Archive
Problem with Y_INI: Multiple accounts with the same name BUT different letters - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with Y_INI: Multiple accounts with the same name BUT different letters (/showthread.php?tid=549577)



Problem with Y_INI: Multiple accounts with the same name BUT different letters - Uberanwar - 07.12.2014

Hey everyone, I'm using y_ini for my server. However I'm currently having a critical problem so I hope there's a solution for it.

Let's say I have an account named "Uberanwar" in my server, players are able to create multiple accounts with the same name as Uberanwar but different letters like "UbEranwar, uberanwar, UbeRanwar etc..." & there will be impersonation happening!


Re: Problem with Y_INI: Multiple accounts with the same name BUT different letters - Uberanwar - 08.12.2014

Bump.


Re: Problem with Y_INI: Multiple accounts with the same name BUT different letters - BroZeus - 08.12.2014

The only solution to this is store every player username (which serves as file name) in lower case,
So whenever a player joins convert his name into lower case then check if file of that name exists or not.
Store there original name inside file as a varaible and set the player name to original name when they login successfully


Re: Problem with Y_INI: Multiple accounts with the same name BUT different letters - Uberanwar - 09.12.2014

Oh, alright. Thanks alot.