BIG PROBLEM - I GIVE REP ( 2 players can connect on the same account )
#3

Quote:
Originally Posted by biker122
Посмотреть сообщение
If you're using MySQL, update the player's username in database with the new name of the player.
And if you're using an INI based saving system, change the file name with frename function.
Not such a good idea, the clients would have to login with their full name including the clan tag which would cause inconvenience. Plus someone could make a new account with the original name; and when the original person gets uninvited or resigns from the clan the accounts would clash.

The actual best way is to store the person's original name upon the player connecting, and then define that name as connected. When a new player connects check if the new player's name is the same as the clan member's original name from the variable you just put when the original person connected. When the original person disconnects remove their name from the string to not cause any problems when the original person wants to reconnect.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)