This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

SoD Player Stats


Post New Thread Reply   
 
Thread Tools Display Modes
coach
SourceMod Donor
Join Date: Jun 2008
Old 07-21-2008 , 09:11   Re: SoD Player Stats
Reply With Quote #241

Any news on an update. really hoping for the DODS headshot inclusion.
coach is offline
relaxx
Junior Member
Join Date: Feb 2008
Old 07-21-2008 , 19:02   Re: SoD Player Stats
Reply With Quote #242

just wanna say thanks for this plugin easy to set up and made my servers twice as popular !
relaxx is offline
zhelev81
Veteran Member
Join Date: Nov 2007
Location: Varna,Bulgaria
Old 07-23-2008 , 07:58   Re: SoD Player Stats
Reply With Quote #243

The new release will be better ,we all waiting
zhelev81 is offline
Send a message via ICQ to zhelev81 Send a message via MSN to zhelev81 Send a message via Skype™ to zhelev81
FrostbyteX
Senior Member
Join Date: Dec 2007
Old 07-23-2008 , 08:26   Re: SoD Player Stats
Reply With Quote #244

I think I'll do a partial release without database changes ... Too busy to finish everything =(.

Steve
FrostbyteX is offline
zhelev81
Veteran Member
Join Date: Nov 2007
Location: Varna,Bulgaria
Old 07-24-2008 , 09:40   Re: SoD Player Stats
Reply With Quote #245

agree )
zhelev81 is offline
Send a message via ICQ to zhelev81 Send a message via MSN to zhelev81 Send a message via Skype™ to zhelev81
ompster
Junior Member
Join Date: Jul 2008
Old 07-24-2008 , 22:12   Re: SoD Player Stats
Reply With Quote #246

yeh partial release ftw
ompster is offline
LastBoomer
Junior Member
Join Date: Mar 2008
Old 07-25-2008 , 04:18   Re: SoD Player Stats
Reply With Quote #247

Thanks for this great basic stats plugin FrostbyteX, I've been running
it on my CS:S deathmatch server.

I'd like to suggest 3 more features...
1. Pruning interval adjustable via cvar
2. Points decay for inactivity
3. Command to reset individual player stats (purge hacker's stats)

I fixed two bugs:

1. When setting cvar sm_stats_startpoints to 0, new players
cause divide by zero error when using session and statsme commands.

Fix: Check for stats[STAT_KILLS] = 0
Code:
 
session.sp line 44, statsme.sp line 42
 if(stats[STAT_HEADSHOTS] > 0 && stats[STAT_KILLS] != 0) // fix
 {
  DrawPanelItem(panel, "Headshots");
  Format(text, sizeof(text), "%i (%i%%)", stats[STAT_HEADSHOTS], (100*stats[STAT_HEADSHOTS]/stats[STAT_KILLS]));
  DrawPanelText(panel, text);
 }
2. When players connect then quickly disconnect, GetClientName() throws
a player not found error inside SQL_CreatePlayerCallback()

Fix: Check for connected client
Code:
sodstats.sp
public SQL_CreatePlayerCallback(Handle:owner, Handle:hndl, const String:error[], any:data)
{
 new client = data;
 
 if(hndl != INVALID_HANDLE)
 {
  if(IsClientConnected(client))  // fix
   GetClientName(client, g_name[client], MAX_NAME_LENGTH);
  g_kills[client]       = 0;
LastBoomer is offline
FrostbyteX
Senior Member
Join Date: Dec 2007
Old 07-25-2008 , 17:23   Re: SoD Player Stats
Reply With Quote #248

Thanks for your help, LastBoomer. I will add your changes and credit you appropriately.
FrostbyteX is offline
LastBoomer
Junior Member
Join Date: Mar 2008
Old 07-29-2008 , 00:16   Re: SoD Player Stats
Reply With Quote #249

My pleasure, its a great plugin. I finally got weaned off of Mani Admin
'cuz of this, stats was the only reason I was still using Mani.

BTW i can't figure how a player can get a headshot but not a kill. Either
the game registers a hit in the head as a headshot (1st shot no kill) or
there could be a timing issue with updating the headshot vs kill fields in
the database.
LastBoomer is offline
FrostbyteX
Senior Member
Join Date: Dec 2007
Old 07-29-2008 , 08:54   Re: SoD Player Stats
Reply With Quote #250

Quote:
Originally Posted by LastBoomer View Post
My pleasure, its a great plugin. I finally got weaned off of Mani Admin
'cuz of this, stats was the only reason I was still using Mani.

BTW i can't figure how a player can get a headshot but not a kill. Either
the game registers a hit in the head as a headshot (1st shot no kill) or
there could be a timing issue with updating the headshot vs kill fields in
the database.
Headshots are stored only if the kill was a headshot. If you look at the "player_death" event, headshots are incremented just above where the kills are incremented. There is a bug in "session" that shows an incorrect total headshots. That will be fixed in the next version (I plan to do a partial-release tonight...).

Steve
FrostbyteX 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 22:10.


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