Raised This Month: $ Target: $400
 0% 

Solved [Req] Custom stats


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
4ever16
Veteran Member
Join Date: Apr 2015
Old 02-20-2016 , 13:33   [Req] Custom stats
Reply With Quote #1

Can someone make this plugin.
Donation will be done!

Every steam id has its own .txt or .html file.
So if a new user comes to the server a new file is created for that user.

The file contains and is outputed like this.

Rank                            100
Skill                                   100
Wins              100
Lose         100
Kills                                      100
Deaths                100
HS                                                       100
Knife                              100
Plants                       100
Defuses            100
Mini-ace                 100
Ace                                        1 00
Respekt              100
Leaves                     100

*Rank your place.
*Skill all points put togheter. Deaths are exluded. No deaths!
*Wins +1 point if 16 rounds have been won.
*Lose -1 point if other team won 16 rounds.
*Kills +1 kill
*Deaths -1 death
*HS +1 för headshot.
*Knife +1 knife kill.
*Plants +1 plant the bomb
*Defuse +1 defuse the bomb.
*Mini-ace +1 if you kill 4 people in one round
*Ace +1 if you kill 5 people in one round.
*Respekt - people can write .rep.nickname and that user gets +1 points.
*Leaves -1 point if you disconnect.

Last edited by asherkin; 04-26-2018 at 03:55. Reason: Restored post
4ever16 is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 02-20-2016 , 15:54   Re: [Req] Custom stats
Reply With Quote #2

Files is such a bad idea.
Mysql much better
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 02-20-2016 , 19:19   Re: [Req] Custom stats
Reply With Quote #3

I dont like mysql or web stuff.
4ever16 is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 02-20-2016 , 21:52   Re: [Req] Custom stats
Reply With Quote #4

I'd recommend SQLite as a file-based database. It's not only used for web stuff; one notable example of SQLite is its use to store data for Android applications.

The problem with what you want to do is that you want to calculate the rank of individual users. To do so in your custom setup, you'd have to open up every player's file, read in their values, then calculate their rank (and store it). You really don't want to be opening and closing hundreds of files every time you want to do that.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 02-20-2016 at 21:56.
nosoop is offline
lay295
Senior Member
Join Date: Sep 2013
Old 02-20-2016 , 23:27   Re: [Req] Custom stats
Reply With Quote #5

You're gonna have a bad time when you end up with 1k-100k separate text files...
__________________

lay295 is offline
jballou
Member
Join Date: Jul 2013
Old 02-21-2016 , 00:08   Re: [Req] Custom stats
Reply With Quote #6

Why not just use something like HLStatsX and display the data in whichever format you want? Flat files for data storage isn't a scalable model, especially when 95% of what you want is already available. I'd take a look at that first, save your money and hire a freelancer to make your interface.
jballou is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 02-21-2016 , 02:15   Re: [Req] Custom stats
Reply With Quote #7

Quote:
Originally Posted by lay295 View Post
You're gonna have a bad time when you end up with 1k-100k separate text files...
Ne man its not for public server so its not gonan be so much files.
4ever16 is offline
Reply



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 00:35.


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