The online racing simulator
connection time
hello

and it is possible to know how long the connection has a driver on the server?
and if so and it can make a table as a ranking?


thx
Quote from delta13 :hello

and it is possible to know how long the connection has a driver on the server?
and if so and it can make a table as a ranking?


thx

Save the time that a new connection joins the server via the IS_NCN (New CoNnection) packet, and from there, once you run the command to find out how long a client has been on the server, you can just take away the current time from their connection time to find out how long they have been connected for. People should be cleared from the list when they disconect via the IS_CNL (CoNnection Leave) packet.

FGED GREDG RDFGDR GSFDG