Posts: 342
	Threads: 64
	Joined: Aug 2013
	
Reputation: 
0
	 
 
	
	
		How can I make a timer continue from where it stopped when the player logged out? It's like a countdown timer that should continue when the player gets back into the game
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 295
	Threads: 6
	Joined: Apr 2013
	
Reputation: 
0
	 
 
	
	
		Write value to file, read when they log in.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 342
	Threads: 64
	Joined: Aug 2013
	
Reputation: 
0
	 
 
	
	
		How is that possible, can you show me an example or something.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 342
	Threads: 64
	Joined: Aug 2013
	
Reputation: 
0
	 
 
	
	
		I don't want to reset a down counting timer, that wouldn't make sense
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 342
	Threads: 64
	Joined: Aug 2013
	
Reputation: 
0
	 
 
	
	
		Guys, :@ please read before posting. Once a player used a command a timer of 15 minutes goes in, once the player logs out after 5 minutes past I want the timer to continue from the 10 minutes that is left once he logs back in.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 3,934
	Threads: 353
	Joined: Jan 2010
	
Reputation: 
0
	 
 
	
	
		When someone logs in, set a timer for x amount of ms and increment the value.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 11,827
	Threads: 33
	Joined: Dec 2011
	
Reputation: 
0
	 
 
	
	
		Actually, no need for timer. Use GetTickCount when they login and store it in a variable, when they disconnect use again GetTickCount - the variable you stored before. So you get the time he was online in milliseconds, then you can convert them to seconds/minutes/hours/days or whatever you want!