05.10.2014, 17:31
You could add an extra online parameter in your mysql table and update it on OnPlayerConnect / Disconnect (you could store the playerid in the table while he is online and set it to something invalid if he is offline)
Or you check each row if the name is online by looping through all players (well that is kind of inefficient)
Or you check each row if the name is online by looping through all players (well that is kind of inefficient)