Connected time
#1

How to save players connected time on my server
Online time they spended on last login session,and total time they have spent in server?!
Reply
#2

Save it inside the INI if you have a payday system, add a 1 hour or whatever in the player's ini.
Reply
#3

Use timestamps. Save the timestamp at login and compare upon disconnect. Example where pPlayerConnectTime is the timestamp of when they joined or logged in (which needs to be done by you).

pawn Код:
connect_time = gettime() - pPlayerConnectTime[playerid];
Reply
#4

How to get their connect time,and add them in the ini file ++ ?
Reply
#5

Maybe u can't? u have to add it first.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)