Quote:
Originally Posted by iceeedr
Bugsy, please forgive me, but statistics are not redefined once a day, but once a month (this is if the user wants to use it).
|
Oh, I'm sorry, I didnt realize you had the variable/cvar to determine if it should reset based on the day. Still, your plugin would require no map changes for this to work. I would implement another method for checking the day and resetting.
In plugin_init(), check the vault for a date record, if it does not exist or is expired, reset sets and write the current date. This would make the check occur on each map change while allowing it to only reset stats on the desired day of the month.
__________________