Author Topic: Serverstats 1.4.5 -<- Update ->-  (Read 4467 times)

0 Members and 1 Guest are viewing this topic.

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Serverstats 1.4.5 -<- Update ->-
« on: December 21, 2008, 02:20:45 am »
Script Name: Server Stats
Script Description Keeps stats of players.
Author: Hacktank
Compile Test: Passed
Core Version: 2.6.3
Hosted by: Soldat Central - http://soldatcentral.com/
Servers: Blitwise Zombie IP 24.155.140.223 Port 23079 Blitwise Deathmatch IP 24.155.140.223 Port 23078 Blitwise Rambo IP  24.155.140.223 Port 23077
Full Description:
Server Stats saves the stats of anyone that joins your server, it saves their:

kills
deaths
longest kill streak
flag caps
flag grabs
flag returns
name (for admins browsing the ini)
playtime

And more to come!

Just place the folder stats into your scripts folder and playerrecord.ini into the root of your server.

To view stats ingame type !stats

Version 1.4.5


Update 1.4.5
Fixed a problem with Rank

Update 1.4
Ranks added (change the script function GetRank to meet your servers theme)

Patch 1.3.8
Fixed a major bug not allowing the kills to be stored. (caused by a unseen 1.3 typo)

Patch 1.3.5
Fixed a major bug not allowing the playtime to be stored.

Update 1.3
Fixed playtime
Fixed various bugs/exploits
Added and fixed compatability with all gametypes

Update 1.2
Added playtime

Todo:
Add more stats
Add K:D ratio
Add placement
Add Fav Wep



(Size 2.88 KB)
- http://soldatcentral.com/index.php?page=script&f=75 -


** Script hosted by Soldat Central! Please visit the author's script page and Rate this script **
« Last Edit: December 24, 2008, 02:06:14 am by Hacktank »


Offline Vyka

  • Major
  • *
  • Posts: 59
Re: Serverstats
« Reply #1 on: December 21, 2008, 05:46:20 am »
Haven't checked code yet, but think, it's good scripted.
I'm going to download later and check it out. : )

Offline [TTD]NadeZilla

  • Major(1)
  • Posts: 34
Re: Serverstats
« Reply #2 on: December 21, 2008, 08:46:13 am »
Thanks, Great tool, Using it on my server now ^^.
With more functions it will be great. :)

Would like to see added:
  • Amount of time playing. [Eg, !Stats, * You have been playing for *Time* and your total time playing is *Total time*.
  • Fav/Most Used Weapon
  • Amount of kills with What weapons.
  • Maybe Ranks? [Eg, 1 Kill= Noob. 100 = God.] Maybe stupid, but would be good.


Thx.
NadeZilla

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: Serverstats
« Reply #3 on: December 21, 2008, 01:29:57 pm »
Update version 1.2!
Playtime added
Is it possible to round a float # to say 2 decemal places?

And about the ammount of kills per wep, i think that would cause the record file to skyrocket in size but i may give it a shot.

Nadezilla Whats your server?


Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Serverstats
« Reply #4 on: December 21, 2008, 01:38:48 pm »
Is it possible to round a float # to say 2 decemal places?
I think there is a RoundTo function, with 2 arguments.. if not, use Round(100 * myFloat) / 100

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: Serverstats
« Reply #5 on: December 21, 2008, 01:39:17 pm »
Nice idea indeed :D, the idea is similar to my LogInSystem script, which is currently in the final stages of development [pigtail]

While testing your script, I spoted some minor 'bugs':
  • You're able to increase your statistic Flag Returns by shooting your team flag out of base and returning it afterwards
    Solution: Check whether the team flag has been snaffled by an opposing player
  • Selfkills are added to Kills
    Solution: I suggest creating a sperate statistic for them
  • and, people are gonna join alone and just keep capping 100 times. and fight over capping the flag.
    Solution: Increase this stat simply if at least 2 players are in-game (NumPlayers > 1).
« Last Edit: December 21, 2008, 01:56:48 pm by Markus Quär »
Soldat Global Account System: #soldat.sgas @ quakenet

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: Serverstats
« Reply #6 on: December 21, 2008, 02:55:55 pm »
I know its kinda simalar to your loginsystem but i was not trying to copy it or steal your idea, I just like to do things myself (and i looked at the sorce of urz, its complicated :p)

I was aware of these bugs and am plannign to get rid of them in 1.3.

Thanks for the feedback guys!

DorkeyDear thank you, i cant beleive i didnt see that on the enesce help page :p
« Last Edit: December 21, 2008, 10:54:16 pm by Hacktank »


Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: Serverstats
« Reply #7 on: December 21, 2008, 03:09:28 pm »
Never thought about the fact that you steal, or copy code. Quite the contrary, I approve you to take a look at my source in order to improve your script. By the way, your save function reveals a striking variety in contrast to my save function. You make use of ini functions and my script is based on data parsing.

And nice that you are going to get rid of those bugs!
Soldat Global Account System: #soldat.sgas @ quakenet

Offline [TTD]NadeZilla

  • Major(1)
  • Posts: 34
Re: Serverstats 1.4 -<- Update ->-
« Reply #8 on: December 22, 2008, 07:25:42 pm »
Just a quick note:
Fallen Angle Rank is spelt wrong >_<
Its Angel. Unless you mean a fallen angle...


*Edit: Also, you may want to Write the Rank to the ini file?
« Last Edit: December 22, 2008, 07:28:40 pm by [TTD]NadeZilla »

Offline sckme

  • Major(1)
  • Posts: 33
Re: Serverstats 1.4.5 -<- Update ->-
« Reply #9 on: December 27, 2008, 06:13:45 pm »
amazing, thx :E

Offline Mujuice

  • Major(1)
  • Posts: 20
Re: Serverstats 1.4.5 -<- Update ->-
« Reply #10 on: December 21, 2009, 12:13:14 pm »
please make it so that it also roperly works for survival (round end -death thing)
rumple comes from homo land, no surprise here :)