Raised This Month: $ Target: $400
 0% 

Saving player scores and weapon stats before map change


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ghostdlr
Senior Member
Join Date: Aug 2010
Old 11-05-2022 , 14:46   Saving player scores and weapon stats before map change
Reply With Quote #1

I want to save the full statistics for each match played on the server in a database, as a json that I can load and display on a web page later. (I can handle this part myself)

I want to track as much information as possible:
- basic stats like: kills, deaths , headshots etc
- individual weapon stats

Players come and go, so I also want to save the stats for the players that played only a few rounds and left. (players that were not online at the map change)

What is the best approach for doing this?

Can I detect when the map changes? Do I have time to do a POST request to my web server?
Should I keep all the statistics in a giant array?

How do other plugins do this? (hlstats, psychostats)

Last edited by ghostdlr; 11-05-2022 at 15:18.
ghostdlr is offline
 



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 15:36.


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