08.09.2013, 01:37
You're right, those should be made into a separate function and saved upon OnPlayerDisconnect or on a reasonable timer. However, the issue with your script is that (as far as I can see through the code you posted), you're not actually assigning the variables [Money] any variable, so when it saves, it's just saving 0. Try editing the file and setting money to a different number and seeing if it resets to 0.
Also OnPlayerUpdate doesn't need to be ran in a timer.
Also OnPlayerUpdate doesn't need to be ran in a timer.