Description
Plugin provides ingame commands /rank and /top10 for Psychostats statistic.
Plugin automatically detected how psychostats calculate stats - by ipaddr, worldid (steamID) or name. Thus plugin can work on LAN and Internet servers.
Also plugin can work on all mods (CSS, DoDS, TF2, etc..)
Plugin tested on LAN TF2 server (psychostats 3.1/works by ipaddr) and CSS Internet server (psychostats 3.1/works by steamID/name).
Please give feedback if plugin works on your server (mod and psychostats version)!
Requirements
Psychostats web statistic (
versions 3.1 or 3.0.x)
Chat commands
/rank - display menu with individual player information
/top10 - display menu with top10 players
Installation
1. Copy psychostats_threaded_uni.smx into sourcemod\plugins folder
2. Copy plugin.psychostats.txt into sourcemod\translations folder
3. Copy this db information into sourcemod\configs\databases.cfg file (copy/past) and change bold text (
"psstats" - should not change!):
Code:
"psstats"
{
"driver" "mysql"
"host" "localhost"
"database" "your_db_name"
"user" "your_db_user"
"pass" "your_db_password"
//"timeout" "0"
"port" "3306"
}
4. Restart game server
* you can change psychostats database tables prefix at the top of .sma file (if it need):
Code:
// Your psychostats tables prefix here
new String:MysqlPrefix[10] = "ps";
Quote:
Most common problem (mysql and srcds on different boxes)
Note: You will need to setup MySQL server to accept connections from your game server, or the plugin simply wont work
Example error:
L 02/08/2009 - 2360: [psychostats_threaded_uni.smx] Database failure: [1045]: Access denied for user 'totalblo_user'@'216.155.146.22' (using password: YES)
Answer:
Your mysql user totalblo_user must have access rights to psychostats database from srcds ip
|
Changelog
0.2
Fixed mysql query for /top10 (query was too short for steamids and may be for nicks)
Added mysql errors into sourcemod`s error log
0.1
Release
Thanks authors
sourcebans and
N1G-TF2-RANK for ideas.
WARNING! Latest extended version of this plugin here:
http://forums.alliedmods.net/showthread.php?t=105735