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.
What's changed
- Incompatible with old one.
- Faster. Like, a lot faster.
- Tracks everyone.
- Better webui.
- Pages and search on webui.
- New tracking mode (Mode 1).
- Completely rewritten webui, about 98% rewritten plugin.
- Using a simple printf format instead of a 25-line math stuff for displaying time.
Limitations and Bugs
- Do not switch modes while server is running! It WILL dupe players' current session playtime.
- Mode 1 is EXPIREMENTAL! I'm not responsible for broken times, crashing servers or thermonuclear war.
- UTF-8 on webpanel may randomly break or fix itself. I don't know why.
To-do
CVars
sm_ptt_version2 "3.0.0" - Guess what..
sm_ptt_refresh "5" - Time (in seconds) between data updates. [5-60]
sm_ptt_database "default" - Database (in databases.cfg) to use.
sm_ptt_table "time_tracker" - Table in your SQL Database to use.
sm_ptt_team "1" - Who to track: 0 = all, 1 = only those on a team.
Not working with mode 1
sm_ptt_mode "0" - Track mode: 0 = on refresh (resource-heavy), 1 = on disconnect (
untested, fast, expiremental).
Commands
sm_mytime - Get your playtime!
sm_gettime <target> - Time of someone else.
How to install this plugin?
- Set up your databases.cfg if you haven't already. Only MySQL is supported
- Install ptt.smx in plugins folder
- Load Plugin
- Change plugin.ptt.cfg in /cfg/sourcemod
- Reload plugin
And how about that webstuff?
- Enter conenction details in config.php
- Copy stuff on website
- LICENSE: Edit whatever you want, however you are not allowed to remove the Copyright Notice at the bottom. Redistribute with these terms included.
Changelog
v3.1.1
- Fixed sm_gettime and sm_mytime throwing errors and writing only to console - now writes only to chat. sorry.
v3.1.0
- Fixed sm_gettime
- Rewritten some parts
- More efficent SQL
- Added comments in code
v3.0.1
v3.0.0
Credits:
- Original plugin here. This is a almost-complete rewrite of the plugin, and a complete rewrite of the webpanel.
- Online tracker designed by DjDavid98
Download count of prior versions: 161