18.11.2014, 11:39
If you're going to use it for your own server, there are ways.
For example:
You had a new column in the Player table, with the name "connected"(smallint)
When a player connect, and load his data, you put the value there for 1.
When the player disconnects, change the value for 0
Now, you just need to query the database, example:
This should do the trick
For example:
You had a new column in the Player table, with the name "connected"(smallint)
When a player connect, and load his data, you put the value there for 1.
When the player disconnects, change the value for 0
Now, you just need to query the database, example:
Код:
SELECT `Name`,`Score` FROM `Players` WHERE `Connected` = 1