AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Stats Auto Reset (https://forums.alliedmods.net/showthread.php?t=286213)

Leo_BH 08-11-2016 11:55

Stats Auto Reset
 
1 Attachment(s)
https://pp.vk.me/c637529/v637529766/...4vy8K7kAfw.jpg

Stats Auto Reset

A plugin for automatic cs statistics reset a first day every Month.

FULL POST: (Google Translate)


Sorry, bad English...

siriusmd99 08-11-2016 13:28

Re: Stats Auto Reset
 
Replacement tool for Admin Manual Statistic reset. Very useful , especially for servers with top15 places bonus which require monthly stats reset. Good Job.

Napoleon_be 08-12-2016 16:20

Re: Stats Auto Reset
 
PHP Code:

    server_cmd("echo Stats Reseted")
    
log_amx("Stats Reseted"

PHP Code:

    server_cmd("echo Stats have been reset")
    
log_amx("Stats have been reset"

Minor english fixes. Overall well done, small plugin but indeed usefull for lazy people :p

EFFx 08-12-2016 17:02

Re: Stats Auto Reset
 
Here is suggestions, do it if you want:

1. A cvar for add if the owner/admin want to the plugin reset all status after one month, two months, 1 week, 2 week, will not be bad.

2.
PHP Code:

server_cmd("echo Stats Reseted"

Is this really necessary ?

3. Add a log adding the current day, example:

PHP Code:

log_amx("The stats has been reseted today: 08/12/2016"


addons_zz 08-12-2016 21:17

Re: Stats Auto Reset
 
Quote:

Originally Posted by EFFx (Post 2444463)
PHP Code:

log_amx("The stats has been reseted today: 08/12/2016"


What do you think about use 'log_to_file()' to have a dedicated file as 'reset_history.log'?
Then, it is more easily to track down all resets.
PHP Code:

log_to_file("reset_history.log""The stats has been reset today 08/12/2016, next reset is programmed to 30/12/2016"


EFFx 08-12-2016 22:36

Re: Stats Auto Reset
 
Quote:

Originally Posted by addons_zz (Post 2444501)
What do you think about use 'log_to_file()' to have a dedicated file as 'reset_history.log'?
Then, it is more easily to track down all resets.
PHP Code:

log_to_file("reset_history.log""The stats has been reset today 08/12/2016, next reset is programmed to 30/12/2016"


https://forums.alliedmods.net/showpo...10&postcount=1

Read this

Quote:

Use log_amx instead of log_to_file
This can be used or we can add log_to_file? Idk

HamletEagle 08-13-2016 02:54

Re: Stats Auto Reset
 
You can use log_to_file too.

siriusmd99 08-13-2016 03:06

Re: Stats Auto Reset
 
You could also add cvar to control date of reset .
For example I want every month 15th day not first.

EFFx 08-13-2016 12:16

Re: Stats Auto Reset
 
Quote:

Originally Posted by HamletEagle (Post 2444527)
You can use log_to_file too.


AAAhh!

Quote:

Originally Posted by siriusmd99 (Post 2444528)
You could also add cvar to control date of reset .
For example I want every month 15th day not first.

As i said?

Leo_BH 08-13-2016 14:03

Re: Stats Auto Reset
 
Quote:

Originally Posted by Napoleon_be (Post 2444455)
PHP Code:

    server_cmd("echo Stats Reseted")
    
log_amx("Stats Reseted"

PHP Code:

    server_cmd("echo Stats have been reset")
    
log_amx("Stats have been reset"

Minor english fixes. Overall well done, small plugin but indeed usefull for lazy people :p

Thank. Fixed.


All times are GMT -4. The time now is 14:57.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.