Playing hours.
#1

Hello, I am looking for a way save playing hours, and use them as the players score, example

Jason Smith logs onto the server, this is his first time on and he plays for a hour, he logs off and logs back in a day later and looks at his score and it has his hours (1), and so on...

I have a user/statistic saving system.. but how can I make it set players score every payday? please help!
Reply
#2

To save players hours you need to create an variable for every single player and count it in some timer. Then after player is going to log off you can save it. If player is coming again and he logged succesfully you can set his hours by sscanf function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)