Raised This Month: $32 Target: $400
 8% 

Player Status in DB


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Statistical        Approver:   Orangutanz (13)
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 04-18-2008 , 23:13   Player Status in DB
Reply With Quote #1

Player Status in DB v1.10

DESCRIPTION
  • This adds up the status of the player and writes in it at a database.
  • Update DB in RoundEnd, Mapchange, Client Connected/Disconnected.
  • On your homepage, please use ranking to displaying it.

INSTALL an USING
  • Require module MySQL,CSTRIKE,CSX,GEOIP.
  • Setup MySQL Server. (I will not explain here)
  • Install and Setting any servers (Web+PHP)
  • Check, addons/amxmodx/configs/sql.cfg
    Code:
    • amx_psd_sql_host "127.0.0.1" // MySQL server address.
    • amx_psd_sql_user "root" // MySQL login user.
    • amx_psd_sql_pass "*****" // MySQL login password.
    • amx_psd_sql_db "amx" // database name. (Please make it in advance.)
  • Install this plugin.
  • ex. rankpage upload on your homepage(need PHP).

CREDIT
  • ripcurl2 : sqlstats
  • AmxxDevTeam: StatsX

ATTENTION
  • Supported AMXMODX 1.90 in CS1.6
  • I tested linux server on CS1.6+MySQL
  • "[PSD] Error: Can`t connect: 'Access denied for user 'root@'localhost' (using password: NO)'"
    You don't make a database for a MySQL server. Or you don't set a password.
    Or an IP address or user name is wrong.


UPDATED
Code:
  • 2021.02.01. v1.10 Added: amx_psd_serverid Added: database cvars (amx_psd_sql_host/user/pass/db) Modify: Insert Query has Threaded. Fixed: player name escape.
  • 2020.12.10. v1.07 Fixed: reset command not working. Fixed: ERROR: client_putinserver. Fixed: amx_psd_reset/amx_psd_update: not updating user table. (user name) Fixed: ERROR: for sql_mode=only_full_group_by.
  • 2020.04.18. v1.04 Fixed: Can't CTs Win Count for Time up.
  • 17.04.2020 v1.03 Fixed: Create Table SQL.
  • 2020.04.11. v1.02 Fixed: online time bug.
  • 2020.04.06. v1.00 Big UPDATE. Added Tables.
    • server_map
    • server_round
    • total_stats
    • user_info
    • user_objective
    • user_rstats
    • user_stats
    • user_wrstats
    • user_wstats
  • 2008.06.10. v0.73 add "amx_psd_initialize","amx_psd_reset" fix VALVE_ID_PENDING,STEAM_ID_LAN don't recording. fix can't update bug. known bug: initialize cmd is wrong..
  • 2008.05.29. v0.7 add command "amx_psd_update" synchronize csstats.dat and database.
  • 2008.05.28. v0.6 I unify Windows version and Linux versions. Speedup of the access to the database. add a K/D rate field to a database table.
  • 2008.04.25. v0.5 fix connecting bug for windows.
  • 2008.04.22. v0.3 cut some "public"
  • 2008.04.20. v0.2 single quotation in name no write bug fix.
  • 2008.04.19. v0.1 first release.
v1.0 over Development on GitHub
__________________
GitHub
SteamWishlist

六四天安門事件

Last edited by +ARUKARI-; 04-05-2023 at 00:35. Reason: update 1.10
+ARUKARI- is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 04-19-2008 , 02:33   Re: Player Status in DB (sqlstats Lite)
Reply With Quote #2

Nice...gj
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
NelegalJke
Member
Join Date: Mar 2008
Location: Ukraine
Old 04-19-2008 , 04:22   Re: Player Status in DB (sqlstats Lite)
Reply With Quote #3

no bugs?
__________________
NelegalJke is offline
Send a message via ICQ to NelegalJke
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 04-19-2008 , 06:41   Re: Player Status in DB (sqlstats Lite)
Reply With Quote #4

Alka:
Thanks

NelegalJke:
It is the intention.
However, it is impossible to know all.

I will think that I add some functions in future.
__________________
GitHub
SteamWishlist

六四天安門事件
+ARUKARI- is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 04-19-2008 , 07:08   Re: Player Status in DB (sqlstats Lite)
Reply With Quote #5

any one tested on cz?
`666 is offline
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 04-19-2008 , 07:15   Re: Player Status in DB (sqlstats Lite)
Reply With Quote #6

Quote:
Originally Posted by `666 View Post
any one tested on cz?
I don't have CZ.. tested CS1.6 only.
__________________
GitHub
SteamWishlist

六四天安門事件
+ARUKARI- is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 04-19-2008 , 07:20   Re: Player Status in DB (sqlstats Lite)
Reply With Quote #7

I guess ill be 1st
`666 is offline
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 04-19-2008 , 07:26   Re: Player Status in DB (sqlstats Lite)
Reply With Quote #8

Quote:
Originally Posted by `666 View Post
I guess ill be 1st
oh thanks!
I wait for a good report.
__________________
GitHub
SteamWishlist

六四天安門事件
+ARUKARI- is offline
DeuX
Member
Join Date: Apr 2008
Old 04-21-2008 , 04:22   Re: Player Status in DB (sqlstats Lite)
Reply With Quote #9

I welcome!

Plugin good me liked, but for me problem!
Business in that as though correctly did everything, but for me does
not want will unite with the server of MySql!
What can a problem be in???

For me fashions AmxModX 1.80...

Tuning did everything, and writes me
"[PSD] Error: Can`t connect: 'Access denied for user 'root@'localhost' (using password: NO)'"

Did I adjust parameters in the file in cfg, in a script, and in what problem?
Help, because it is very desirable to put this plugin on the server!
DeuX is offline
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 04-21-2008 , 05:56   Re: Player Status in DB (sqlstats Lite)
Reply With Quote #10

DeuX:
did you create DB on mysql server?
and "localhost" doesn't work. try "127.0.0.1"

Code:
amx_sql_host "127.0.0.1" //NOT "localhost"!
amx_sql_user "root"
amx_sql_pass ""
amx_sql_db "dbname" //you create db on mysql server.
__________________
GitHub
SteamWishlist

六四天安門事件
+ARUKARI- is offline
Reply


Thread Tools
Display Modes

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 18:13.


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