Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 17:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP]Server Status Total acc/char players online code

Discussion on [HELP]Server Status Total acc/char players online code within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2010
Posts: 31
Received Thanks: 13
[HELP]Server Status Total acc/char players online code

HELP I need a Server Status, Total account, Total Character and Total Players Online code for 5165 using appserver NON-HAMACHI HELP!
paralyzer2 is offline  
Old 02/13/2010, 13:33   #2
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
/players maybe that will help you.
salem rey is offline  
Old 02/13/2010, 15:05   #3
 
elite*gold: 0
Join Date: Sep 2006
Posts: 36
Received Thanks: 27
This is what my status.php looks like

Code:
<title>Server Status</title>
<a href="http://status.blackout-gaming.net/" target="_blank">Server Status: <img src="http://status.blackout-gaming.net/status.php?dns=YOURIPHERE&port=9958&style=7" alt="Powered by Blackout Gaming Status Checker" border="0" /></a></a>
</tr><p>

<b><font color=#FFCF84><font SIZE="2">					
<li class="style11"><?php	
$directory = "C://OldCODB/Users/";
$howmuchacc = count(glob("" . $directory . "*.usr"));

echo "Total Accounts: $howmuchacc ";
?></li>
<li class="style11"><?php	
$directory = "C://OldCODB/Users/Characters/";
$howmuchchar = count(glob("" . $directory . "*.chr"));

echo "Total Characters: $howmuchchar ";
?></li>
<li class="style11">Players Online: <b><?php echo (exec('netstat -a -n |find "5816"  |find "ESTABLISHED" /c')-0); ?></b><br />
<p /></li>
Hanibal is offline  
Thanks
2 Users
Old 02/13/2010, 16:08   #4
 
elite*gold: 0
Join Date: Jan 2010
Posts: 31
Received Thanks: 13
THANK YOU BUT:

The server online allways ses offline and the Players online comes out with dubble the players online if its just me online it said 2 ppl and if 2ppl are online it said that 4ppl are online!


Help with be much helpful
paralyzer2 is offline  
Old 02/13/2010, 17:13   #5
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
hmmm... idk the problem with you server ty asking else who know it. sorry friend
salem rey is offline  
Old 02/13/2010, 19:27   #6
 
elite*gold: 0
Join Date: Apr 2009
Posts: 130
Received Thanks: 89
here this will help ya:

Code:
<?php
require ("connect.php");

$res = mysql_query("SELECT count(*) FROM accounts;");
$val = mysql_fetch_array($res);
echo "<div style='top'><font color='white'>Accounts Created: ".$val[0]."</div>";

$res = mysql_query("SELECT count(*) FROM characters;");
$val = mysql_fetch_array($res);
echo "<div style='top'><font color='white'>Characters Created: ".$val[0]."</div>";

$ip = "Your Server Ip";
$port = "9958"; //keep this what it is!!
if (! $sock = @fsockopen($ip, $port, $num, $error, 5))
echo "<body bgcolor='black'><font color='white'>Server: </font><B><FONT COLOR=red>Offline</b></FONT>";
else{
echo "<body bgcolor='black'><font color='white'>Server: </font><B><FONT COLOR=lime>Online</b></FONT>";
fclose($sock);
}

$res = mysql_query("SELECT count(*) FROM accounts WHERE online=1;");
$val = mysql_fetch_array($res);
echo "<div style='top'><font color='white'>Total Players Online: ".$val[0]."</div>";
?>
Then make a connect.php

Code:
<?php

$error = "<body bgcolor='black'><font color='white'>Problem connecting to database, Please try again later.</font>";

$connect = mysql_connect("localhost", "root", "password") or die($error);
mysql_select_db("coproj") or die($error);

?>
irritantgassie is offline  
Old 02/13/2010, 20:30   #7
 
elite*gold: 0
Join Date: Jan 2010
Posts: 31
Received Thanks: 13
Sorry I dont do Mysql
paralyzer2 is offline  
Old 02/13/2010, 21:24   #8
 
elite*gold: 0
Join Date: Jan 2010
Posts: 31
Received Thanks: 13
Got my answer

#Request Close
paralyzer2 is offline  
Reply


Similar Threads Similar Threads
Char Online Status
06/12/2010 - Metin2 Private Server - 31 Replies
Hallo, ich will für meine HP eine Online anzeige welche Chars grade on sind. Wie kann ich das auslesen ?
[Release] Total Players Online
09/09/2009 - CO2 PServer Guides & Releases - 1 Replies
For Who Looking For that code that code let you know how many players play on your server now Its Not Made by Me Total Players Online: 30 Just Put it On Register.php
about Online players status
06/04/2009 - CO2 Private Server - 2 Replies
Im useing tq binarys 5065 and i whant to add to my web a indicator that shows the online players.Can I ? I've seen something on this http://www.elitepvpers.com/forum/co2-pserver-discus sions-questions/201427-release-tq-register-script. html reg page. And here is a preview of it Conquer Online 2 restricted test server
[EO-TOTAL] changed name -Players must read!!
03/15/2009 - EO PServer Hosting - 2 Replies
Ok everyone. I have changed the name of the server. I am now parting with Freestylers Crew - Portal You MUST download patch 5500 from our old website in order to play. Patch is at Eo-Total Private Server Sorry for the inconvenience.
Check the online status of ENEMY players
03/16/2008 - WoW Exploits, Hacks, Tools & Macros - 2 Replies
Did you know that you can check wether a player of the opposing faction is online/offline? All you have to do it type /invite If the enemy player is offline, you will get a message saying "Could not find bla bla bla" But the interesting part is that if he is online, you will get a message saying "Target is unfriendly". Could be useful for checking wether that annoying elemental plateu ganker is online or not



All times are GMT +2. The time now is 17:28.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.