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

SoD Player Stats


Post New Thread Reply   
 
Thread Tools Display Modes
DramaLlama
Member
Join Date: Jan 2015
Location: Vancouver
Old 05-27-2015 , 01:39   Re: SoD Player Stats
Reply With Quote #901

how can I use my old player stats? I made a backup of my entire sourcemod folder (plugins and everything) because I had to update to wipe the server and install a new version of sourcemod. Anyway I can recover my player data from my sourcemod backup I made?
DramaLlama is offline
shtopor
Member
Join Date: Dec 2010
Old 06-15-2015 , 11:03   Re: SoD Player Stats
Reply With Quote #902

plugin compiled with errors (sourcemod 1.7.2, CSGO)



the game is not displayed player's nickname when entering commands: rank, session, statsme, top
maybe the plugin does not understand the command %s

Last edited by shtopor; 06-15-2015 at 11:04.
shtopor is offline
OnlyRipper
Junior Member
Join Date: Nov 2008
Old 06-19-2015 , 18:29   Re: SoD Player Stats
Reply With Quote #903

It worked about 10minutes....the it stopped to record any kills or deaths or points.:\ I've reinstalled everything but dunno what to do to make it work agian.
OnlyRipper is offline
DrakoMaster
New Member
Join Date: Aug 2015
Old 08-08-2015 , 04:23   Re: SoD Player Stats
Reply With Quote #904

iam renting a cs go server and I use this ranking plugin

it's a bit laggy but I love this plugin

I was wondering if
sm_stats_countbots <1/0> will be able soon?

I dint want to count bots but my server stays so empty that I would love this to be enabled
DrakoMaster is offline
HighGuy
Junior Member
Join Date: Sep 2015
Old 09-23-2015 , 08:10   Re: SoD Player Stats
Reply With Quote #905

How can i make it for mysql and not local ?
HighGuy is offline
picknroll
New Member
Join Date: Nov 2015
Old 11-15-2015 , 17:36   Re: SoD Player Stats
Reply With Quote #906

Is there anyway to display Top10 in server message of the day?

Or make the TOP10 Display when you first join the server?
picknroll is offline
valio_skull
Senior Member
Join Date: Jan 2013
Location: at home
Old 12-19-2015 , 09:24   Re: SoD Player Stats
Reply With Quote #907

Can you add an Admin command to see another player's stats ?
I need this to see the activity of my admins...
__________________
valio_skull is offline
Matthewq
Junior Member
Join Date: Aug 2011
Old 01-14-2016 , 22:28   Re: SoD Player Stats
Reply With Quote #908

I figured it out, thank you too anyone considering responding. My SodStats is now run on MySQL and sharing the same database across five of our servers.

Last edited by Matthewq; 01-15-2016 at 13:04.
Matthewq is offline
Matthewq
Junior Member
Join Date: Aug 2011
Old 01-15-2016 , 13:08   Re: SoD Player Stats
Reply With Quote #909

Quote:
Originally Posted by picknroll View Post
Is there anyway to display Top10 in server message of the day?

Or make the TOP10 Display when you first join the server?

Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>#OilGaming 1v1</title>
<link href='https://fonts.googleapis.com/css?family=Oswald:400,700,300' rel='stylesheet' type='text/css'>
<style type="text/css"> 
  body {
    color: #ffffff;
    padding: 0;
    margin: 0;
    height: 100%;
    background: #000 url('img/background.jpg') center no-repeat fixed;

  }
  TD { color: #ffffff; } 
  .statstable {
    bdackground: #aaaaaa;
    background: url('img/bgtrans.png');
    border-radius: 15px;
    border: #000000 1px solid;
    margin: 10px;
    font-family: 'Oswald', sans-serif;
  }
  TD.stats { color: #000000; padding-left: 5px; padding-right: 5px;}
  .sta3ts { background: url('img/bgtrans.png'); border-radius: 15px; border: #000000 1px solid; margin: 10px; font-family: 'Oswald', sans-serif; }
</style>

</head>

<body>

<TABLE align=center class=statstable>
  <TR>
    <TD width=300><img src="img/header.png"></TD>
    <TD align=center>104.207.155.10:27015 -[US/CA]- *Arena 1v1*  128 Tick - OilGaming.com</TD>
  </TR>
</TABLE>

<TABLE align=center style="background: url('img/bgtrans.png'); border-radius: 15px; border: #000000 1px solid; margin: 1px; font-family: 'Oswald', sans-serif; heighdt: 100%;" cellpadding=0 cellspacing=0>
  <TR>
    <TD class=stats>Rank</TD>
    <TD class=stats>Player</TD>
    <TD class=stats>Score</TD>
    <TD class=stats>kills</TD>
    <TD class=stats>deaths</TD>
    <TD class=stats>K/D</TD>
    <TD class=stats>Shots</TD>
    <TD class=stats>Hits</TD>
    <TD class=stats>Acc.</TD>
    <TD class=stats>Headshots</TD>
    <TD class=stats>Time Played</TD>
    <TD class=stats>Last Connect</TD>
  </TR>
<?php
function duration($seconds, $max_periods) {
$duration = '';
    $periods = array('year' => 31536000, 'month' => 2419200, 'w' => 604800, 'd' => 86400, 'h' => 3600, 'm' => 60, 's' => 1);
    $i = 1;
    foreach ( $periods as $period => $period_seconds ) {
        $period_duration = floor($seconds / $period_seconds);
        $seconds = $seconds % $period_seconds;
        if ( $period_duration == 0 ) continue;
        $duration[] = $period_duration .''. $period . ($period_duration > 1 ? '' : '');
        $i++;
        if ( $i > $max_periods ) break;
    }
    if (is_null($duration)) return 'just now';
    return @implode(' ', $duration);
}
 $data = '';
 $db = new SQLite3('INSERT YOUR OWN DIRECTORY HERE');
 $sql = "SELECT * FROM players ORDER BY score DESC LIMIT 10";
 $result = $db->query($sql);
 $rank = 1;
 while ($row = $result->fetchArray(SQLITE3_ASSOC)){
   echo "\n  <TR>";
   echo "\n    <TD class=stats align=right>".$rank.". </TD>";
   $rank++;
   echo "\n    <TD class=stats title=\"".$row['steamid']."\">".$row['name']."</TD>";
   echo "\n    <TD class=stats>".(1000 + $row['score'])."</TD>";
   echo "\n    <TD class=stats>".$row['kills']."</TD>";
   echo "\n    <TD class=stats>".$row['deaths']."</TD>";
   echo "\n    <TD class=stats>".@round($row['kills'] / $row['deaths'],2)."</TD>";
   echo "\n    <TD class=stats>".$row['shots']."</TD>";
   echo "\n    <TD class=stats>".$row['hits']."</TD>";
   echo "\n    <TD class=stats>".@round($row['hits'] / $row['shots'] * 100,2)."%</TD>";
   echo "\n    <TD class=stats>".$row['headshots']." (".@round($row['headshots'] / $row['hits'] * 100,2)."%)</TD>";

   echo "\n    <TD class=stats>".duration($row['time_played'],3)."</TD>";
$timeFirst  = strtotime($row['last_connect']);
$timeSecond = strtotime(date("Y-m-d h:i:s"));
$differenceInSeconds = $timeSecond - $timeFirst;
$differenceInSeconds -= 3600;

   if ($differenceInSeconds > 60) {
     echo "<TD class=stats style=\"color: #990000;\">".duration(($differenceInSeconds),3)." ago.</TD>";
   } else {
     echo "<TD class=stats style=\"color: #009900;\"><b>Online now!</b></TD>";
   }
   echo "\n   </TR>\n";
 } 
 unset($db); 


?>  
</TABLE>
</body>
</html>
Credits go to us at #OilGaming - If this code is put into a .php file on a webserver (on the same box the server is hosted on) it will show SQLite information in your MOTD, in the case that you assign this url to your motd.
Matthewq is offline
anti1ol
Junior Member
Join Date: Jan 2016
Old 01-24-2016 , 09:08   Re: SoD Player Stats
Reply With Quote #910

not working on CS:GO

Sourcemod : 1.7 - build 5290
anti1ol 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 15:08.


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