Raised This Month: $51 Target: $400
 12% 

Very Basic Player Tracker (Updated 7/15/10)


Post New Thread Reply   
 
Thread Tools Display Modes
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 11-21-2010 , 04:58   Re: Very Basic Player Tracker (Updated 7/15/10)
Reply With Quote #51

Is it possible this plugin can function so it saves all the names? If a person is using a new name, it should show it after his name?
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
bluechester
AlliedModders Donor
Join Date: Nov 2008
Old 12-07-2010 , 14:24   Re: Very Basic Player Tracker (Updated 7/15/10)
Reply With Quote #52

Quote:
Originally Posted by msleeper View Post
Um. Can anyone else confirm that?

EDIT
Here's an update with Kigen's fix, let me know if this still crashes for you.
I know this is a bit old or late, but it appears that the plugin is pretty much unfinished since people are still getting crashes. I'm confirming that this plugin works on my server and has been for the past two days with this fix. I haven't tried the one in OP however.
bluechester is offline
wazzgod
Member
Join Date: Oct 2005
Location: Home
Old 12-15-2010 , 23:16   Re: Very Basic Player Tracker (Updated 7/15/10)
Reply With Quote #53

I have a question.

in counter-strike source is the charset for playername uft8? ascii?
Becuase you know how some players have those funky symbols in there name.
It would be cool to display there name on the webpage just as it is in game.

I know mysql server default is utf8 (which is what it is right now)



And some errors to report out of the tracker.log
L 12/15/2010 - 19:51:05: [tracker.smx] SQL Error: Incorrect string value: '\xE2\x84' for column 'playername' at row 1
L 12/15/2010 - 19:51:20: [tracker.smx] SQL Error: Incorrect string value: '\xE2\x84' for column 'playername' at row 1



Great plugin btw
__________________
People Who Think They Know Everything
Are Very Irritating To Those Of Us Who Do.

Last edited by wazzgod; 07-28-2011 at 20:40.
wazzgod is offline
clad
Senior Member
Join Date: Oct 2006
Old 03-14-2011 , 19:32   Re: Very Basic Player Tracker (Updated 7/15/10)
Reply With Quote #54

Hi msleeper
For this to be such a basic plugin, it really comes in handy. Thanks for your work on it.

If your still up for adding to the plugin, i agree with FF|Skyrider and wazzgod suggestions.

Add support for all the names a players has used.
Add support for ODD symbols in names.

Also could you add support to show which server the player was on last?

Also in the status section, everyone says "new"
__________________
clad is offline
.=QUACK=.Major.pain
Senior Member
Join Date: Jan 2010
Old 04-24-2011 , 18:15   Re: Very Basic Player Tracker (Updated 7/15/10)
Reply With Quote #55

No matter what I try it never connects to the database.

I changed the default host from localhost to my website ip where the database is hosted, but the plugin continues to connect to the game server and not the website server. Must be a bug in it.
.=QUACK=.Major.pain is offline
theballin7
Member
Join Date: May 2011
Old 05-31-2011 , 18:45   Re: Very Basic Player Tracker (Updated 7/15/10)
Reply With Quote #56

ye iam having same problem its not connecting to my database using "default"

no errors in the logs
theballin7 is offline
clad
Senior Member
Join Date: Oct 2006
Old 05-31-2011 , 18:56   Re: Very Basic Player Tracker (Updated 7/15/10)
Reply With Quote #57

i would still like to use this my self it the author will update it.
__________________
clad is offline
wazzgod
Member
Join Date: Oct 2005
Location: Home
Old 07-28-2011 , 20:42   Re: Very Basic Player Tracker (Updated 7/15/10)
Reply With Quote #58

I created a php script that will post all info from the database.

I use this when searching for someones ip.
So it just pulls all users who ever entered my server and i can just "CTRL + F" with my browser (firefox) and search for his steam id

So i figured i would share it, maybe someone else might use it.

You just need to configure your mysql settings (at top of script)
WARNING : if you have a few thousand or more players in your database.
It might lag the SQL server for such a big QUERY, and might take 30 + seconds for your browser to load.

If people request a sql limit, i will code one in for you.

PHP Code:
<?php 

// MYSQL SETTINGS
$mysql_username "mysql_username_here";
$mysql_password "mysql_password_here";
$mysql_database "mysql_database_here";
$mysql_host "localhost";
$link    mysql_connect($mysql_host$mysql_username$mysql_password);
if (!
$link) { die('Could not connect: ' mysql_error()); }
mysql_set_charset('utf8',$link); 

// MYSQL ENCODING?
$charset mysql_client_encoding($link);
echo 
"The current character set is: $charset <br />";

mysql_selectdb($mysql_database,$link); 

$query "SELECT * FROM player_tracker ORDER BY id ASC"
$result mysql_query($query); 
$num_rows mysql_num_rows($result);
$players_total $num_rows;

echo 
'Total Players = '.$players_total.'<br/>';
echo 
"
<html> 
<head> 
<title>Players</title>

<style type='text/css'>
table.sample {
    border-width: 3px;
    border-spacing: 3px;
    border-style: ridge;
    border-color: gray;
    border-collapse: collapse;
    background-color: white;
}
table.sample th {
    border-width: 1px;
    padding: 1px;
    border-style: outset;
    border-color: green;
    background-color: rgb(153, 153, 153);
    -moz-border-radius: ;
}
table.sample td {
    border-width: 1px;
    padding: 1px;
    border-style: outset;
    border-color: green;
    background-color: rgb(153, 153, 153);
    -moz-border-radius: ;
}
</style>

</head> 
<body>
<table class='sample' border='0'> 
    <tr>
        <th width='80'>steamid</th>
        <th width='200'>playername</th>
        <th width='20'>playerip</th>
        <th width='20'>servertype</th>
        <th width='20'>serverip</th>
        <th width='20'>serverport</th>
        <th width='20'>geoipcountry</th>
    </tr>
"
;

while (
$row mysql_fetch_assoc($result)) { 
$id $row['id']; 
$steamid $row['steamid']; 
$playername $row['playername']; 
$playerip $row['playerip']; 
$servertype $row['servertype']; 
$serverip $row['serverip']; 
$serverport $row['serverport']; 
$geoipcountry $row['geoipcountry']; 
$status $row['status']; 

//$playerip = 'disabled';
echo "
    <tr>
        <td width='100'>"
.$steamid."</td>
        <td width='200'>"
.$playername."</td>
        <td width='20'>"
.$playerip."</td>
        <td width='20'>"
.$servertype."</td>
        <td width='20'>"
.$serverip."</td>
        <td width='20'>"
.$serverport."</td>
        <td width='20'>"
.$geoipcountry."</td>
    </tr>"



echo 
'
</table> 
</body> 
</html>
'
;
?>
Enjoy.
Any errors in my php let me know
__________________
People Who Think They Know Everything
Are Very Irritating To Those Of Us Who Do.
wazzgod is offline
golden_eagle
Member
Join Date: Aug 2011
Old 11-19-2011 , 13:26   Re: Very Basic Player Tracker (Updated 7/15/10)
Reply With Quote #59

Thank you for sharing wazzgod but i get some errors :
Code:
Warning:  mysql_num_rows(): supplied argument is not a valid MySQL result resource in /*/index.php on line 20
Total Players = 
           
Warning:  mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /*/index.php on line 70
Any Idea ?

Last edited by golden_eagle; 11-19-2011 at 13:27.
golden_eagle is offline
myTh
Senior Member
Join Date: Apr 2012
Old 06-09-2012 , 06:01   Re: Very Basic Player Tracker (Updated 7/15/10)
Reply With Quote #60

Is it able to set it ranking by nick? My DM:M&M doesnt recognize steam ids
myTh 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 08:30.


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