Posts: 151
Threads: 20
Joined: Feb 2012
Reputation:
0
Alright guys so I have a /stats command that shows stats only problem is it doesn't update until the player disconnect and reconnects, is there anyway to write the players stats at a certain time or each time they die or kill someone then reload the users file so /stats updates?
Posts: 1,226
Threads: 217
Joined: Jan 2012
Reputation:
0
First of all which saving system you use.. It looks you aren't using y_ini ..
Posts: 51
Threads: 6
Joined: May 2010
Reputation:
0
you can use a timer which will do the same thing as it does when you disconnect(save the stats).
You can do public and forward. so like after the certain time you decided it to be it would save the stats.. or you can even do an individual save account command that will save the player's account individually to reduce laggs in the server.
Posts: 247
Threads: 11
Joined: Aug 2010
Reputation:
0
stats such as..? can you please show your /stats command.
Posts: 151
Threads: 20
Joined: Feb 2012
Reputation:
0
Our /stats command shows a list of things like your money,vip,admin,score,etc and when you kill someone/die I want it to update your users file and /stats can get the updated one.