View Single Post
Plugin Info:     Modification:          Category:         
Dr.G
Senior Member
Join Date: Nov 2008
Old 04-29-2009 , 13:34   AMXX Psychostats
Reply With Quote #1

Quote:
/* Plugin generated by AMXX-Studio */
////////////////////////////////////////////////////////////////////////////////////////////////////
/*
INFO:

If you dont have psychostats, or your webhost doesnt allow incoming traffic to your mysql server
this plugin will NOT work for you! This is graping the stats directly from the psychostats database.

Else this will make people able to:
- See there rank ingame while playing
- See the top X players on the server (X can be set by cvar, topX will show in a motd)
- See how many players that have visitet your server, how many is ranked, and how many kills there
were done in total over time...(this will also show in a motd). Note that if you are admin with
IMMUNITY flag this motd will show you the current plugin settings. Not any database info tho.
This will make its own log file where errors will be writtin. The log is found in:
$mod_dir/addons/amxmodx/logs/amx_psychostats/

There will only be one log file at any time, date and time will be listet in it. If you want a clean
log file fire "amx_psychostats_wipe_log" in your console or in the server console. If you want to
refresh the connection to the database say "amx_psychostats_refresh" in your console or in the
server console.


CVARS / ADMIN COMMAND(S):

- Plugin on / off | 1 is ON
amx_psychostats 1
- Sets how many people /topx will show -> MAX IS AROUND 15
amx_psychostats_topx 10
- Show people available commands when they join the server? | on / off | 1 is ON
amx_psychostats_join_msg 0
- Hide chat messages? | on / off | 1 is ON
amx_psychostats_hide_chat 0

- Database host name
amx_psychostats_host ""
- Database user name
amx_psychostats_user ""
- Database user password
amx_psychostats_pass ""
- Database name
amx_psychostats_name ""
- Database prefix
amx_psychostats_prefix "ps_"

- Force AMXX Psychostats to refresh db connection (console command)
amx_psychostats_refresh
- Will clean up AMXX Psychostats log file (console command)
amx_psychostats_wipe_log


SAY COMMANDS:

/me
/rank
/statsme
/topX
/serverstats


INSTALL NOTE:

Place this plugin in plugins.ini BEFORE the default stats plugins!


THANKS TO:

nepopus - > http://forums.alliedmods.net/showthread.php?t=74581
Hawk552 - > http://forums.alliedmods.net/showthread.php?t=46779
StormTropper @ www.psychostats.com for the queries
Nextra for fixing my n00b loop (:
www.dodplugins.net


CHANGELOG:

28-04-09
BETA release
29-04-09
Public release
Rewrote alot of stuff...
17-06-09
Fixed ranking by ip - thanks KORD 12.7
TopX layout changed to tables, looks way better. But serverstats still looks a bit gay. Will
be changed later...i think...
*/
////////////////////////////////////////////////////////////////////////////////////////////////////
Public stats..


- cheers
__________________

Last edited by Dr.G; 03-09-2010 at 03:32.
Dr.G is offline