Raised This Month: $51 Target: $400
 12% 

Stats Auto Reset


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Statistical       
Leo_BH
Junior Member
Join Date: Dec 2014
Location: Ukraine
Old 08-11-2016 , 11:55   Stats Auto Reset
Reply With Quote #1



Stats Auto Reset

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

FULL POST: (Google Translate)


Sorry, bad English...
Attached Files
File Type: sma Get Plugin or Get Source (stats_auto_reset.sma - 1057 views - 928 Bytes)

Last edited by Leo_BH; 08-13-2016 at 14:16. Reason: text correction
Leo_BH is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 08-11-2016 , 13:28   Re: Stats Auto Reset
Reply With Quote #2

Replacement tool for Admin Manual Statistic reset. Very useful , especially for servers with top15 places bonus which require monthly stats reset. Good Job.
siriusmd99 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 08-12-2016 , 16:20   Re: Stats Auto Reset
Reply With Quote #3

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
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Old 08-12-2016, 16:44
siriusmd99
This message has been deleted by siriusmd99. Reason: nvm
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-12-2016 , 17:02   Re: Stats Auto Reset
Reply With Quote #4

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"
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 08-12-2016 at 17:03.
EFFx is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 08-12-2016 , 21:17   Re: Stats Auto Reset
Reply With Quote #5

Quote:
Originally Posted by EFFx View Post
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"
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 08-12-2016 at 21:18. Reason: misspelling
addons_zz is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-12-2016 , 22:36   Re: Stats Auto Reset
Reply With Quote #6

Quote:
Originally Posted by addons_zz View Post
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
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-13-2016 , 02:54   Re: Stats Auto Reset
Reply With Quote #7

You can use log_to_file too.
__________________
HamletEagle is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 08-13-2016 , 03:06   Re: Stats Auto Reset
Reply With Quote #8

You could also add cvar to control date of reset .
For example I want every month 15th day not first.
siriusmd99 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 08-13-2016 , 12:16   Re: Stats Auto Reset
Reply With Quote #9

Quote:
Originally Posted by HamletEagle View Post
You can use log_to_file too.

AAAhh!

Quote:
Originally Posted by siriusmd99 View Post
You could also add cvar to control date of reset .
For example I want every month 15th day not first.
As i said?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 08-13-2016 at 12:16.
EFFx is offline
Leo_BH
Junior Member
Join Date: Dec 2014
Location: Ukraine
Old 08-13-2016 , 14:03   Re: Stats Auto Reset
Reply With Quote #10

Quote:
Originally Posted by Napoleon_be View Post
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.
__________________
Leo_BH is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:07.


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