Player Time Tracker v2.3.5
64 Attachment(s)
This plugin is NOT recommended to be used with Left4Dead (yet), ESPECIALLY with forked servers (never). USE AT YOUR OWN RISK! Description: This plugin lets you track how long specific people have played on any servers that you have this plugin installed on. It uses a MySQL database to store the information. Commands: All require the ban flag sm_ptt_add <Client Name>: Adds a client to the database to be tracked sm_ptt_delete <Client Name>: Removes a client from the database. sm_ptt_stop <Client Name>: Stops tracking the client, but does not delete their time from the database sm_ptt_start<Client Name>: Reverses the effect of sm_track_stop sm_ptt_gettime <Client Name>: Prints target's current time played (hh:mm:ss) into console. sm_mytime: Prints your time into chat. (Alternatively, say !mytime). Cvars: - plugin.ptt.cfg is auto-generated in cfg/sourcemod/ . Please edit that file to change these options. sm_ptt_default_action - Start tracking as soon as client is added to database? (1=yes 0=no) default=1 sm_ptt_automatic - Track every player that ever connects to your server? (1=yes 0=no) default=0 sm_ptt_enabled - Enable tracking? (1=yes 0=no) default=1 sm_ptt_refresh - Time (in seconds) between data updates default= 5 sm_ptt_database - Database connection (in databases.cfg) to use. Default="default" sm_ptt_table - Table in your SQL database to use. Default="TimeTracker" - Good for keeping separate servers separate! sm_ptt_version - Shows plugin version sm_ptt_team - Which players to track: 1=all, 2=only those on a team (no spectators/unassigned) Default=1 Installation Instructions: 1) Run this SQL command on your database: Code:
CREATE TABLE `TimeTracker` ( 3) Open cfg/sourcemod/plugin.ptt.cfg and edit to your needs 4) (Optional) Download ptt webui.zip, upload contents to webserver, change settings in ptt.mysql.inc.php Notes: --By default, this uses your "default" SQL server. Make sure you have it set up in configs/databases.cfg. You can change the database connection to use with "sm_ptt_database" --Please note as of now, if you want to add or remove a track, or check someone's time, they need to be in the same server you are in. A future addition to this plugin will allow you to remove or check times when they are not in the server. Adding tracks will be added too, but you will need to know their Steam ID. Changelog: Code:
2.3.5 UNTESTED! :D Code:
1.3 Disregard if you are upgrading FROM v2.1 or later Due to the way the plugin is structured (to prevent invalid times), you should only upgrade this plugin when you server is EMPTY! Let me repeat: If you want to upgrade this plugin, YOUR SERVER SHOULD BE EMPTY! Make sure you change the map/restart your server as soon as you put the updated version on, or TIMES WILL BE WRONG! :D PLEASE DO ALSO: Please run this command on your SQL Database, or you will get problems with SQL queries ALTER TABLE `TimeTracker` DROP `StoredTime`; If you are upgrading from version 2.2 or earlier: Please delete cfg/sourcemod/plugin.ptt.cfg before upgrading to allow a new config file to be generated. Then change it with your preferences. |
Re: Player Time Tracker
Lovely was looking for something like this. Web interface be great :)
Also an option to track every player in the server would be superb, gametracker is annoying the crap out of me :D |
Re: Player Time Tracker
Do you mean current players? Or all players ever in the server?
|
Re: Player Time Tracker
You should add a cvar to remove time front old period, let me explain a player have 13hours during april he doesn't play thru may but keep his time, admin should be albe to set nombers of day of tracking.
|
Re: Player Time Tracker
You had two ideas in there...let me make sure I understood them.
1) Reset a player's time (This can already be done by calling remove and add) 2) Have a pre-set number of days, and when those days run out stop tracking, but keep the record? |
Re: Player Time Tracker
Quote:
All players ever. |
Re: Player Time Tracker
That sounds doable. It'll be in the next version.
|
Re: Player Time Tracker [1.4]
1.4 released. Automatic tracking of all players who connect added. Thanks for the suggestion, it really helps with testing! :P
Let me know any more suggestions anyone has. I'll begin work on the web interface in the meantime. |
Re: Player Time Tracker [1.4.1]
Quote:
|
Re: Player Time Tracker [1.4.1]
yes but i cant find that
|
All times are GMT -4. The time now is 20:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.