21.07.2018, 14:36
when player logs in game just update db
update players set online=1 where sid='%d',Player[pid][Sid]
and when player disconnects
update players set online=0 where sid='%d',Player[pid][Sid]
and check if player is online
select online from players where sid='%d'
update players set online=1 where sid='%d',Player[pid][Sid]
and when player disconnects
update players set online=0 where sid='%d',Player[pid][Sid]
and check if player is online
select online from players where sid='%d'