how to make website ryl2 can see akhan and human online ?
#sorry for my bad english :3
Printable View
how to make website ryl2 can see akhan and human online ?
#sorry for my bad english :3
lol man, stop doing posts like this. in the forum everything have been explained by developers. just search.
read the code, understand it.. check other website template that have akhan human online status then combine to your template.. mybe? :laugh:
Life 12ata says, that's becouse of the "newbies flood in topics" the problems aren't solved.
Kepala you need the code of Status viewer, you can find it in a ryl package, the most used is a code that shows the online users based on RylControler log files.
well .. here's the code
For Config.php
$ryl_db_pay = "pay_gamemyth"; // RYL2 Payment Database
For Blocks.Stats.php
<b>Total Online:</b><font color=Red>
<?php
$msdb=mssql_select_db("$ryl_db_pay",$msconnect);
$sql = mssql_query("SELECT count(*) FROM TblCurrentUser");
echo "";
echo mssql_result($sql, 0, 0); ?>
Credit Goes To : SaifulCrewZ
i hope its work for u
status viewer, it works getting the info from RYLServerController_status.csv
you just need add it to website "IF YOUR REALLY USE RYLServerController"
and edit like you want.
Quote:
<?php
//you must change the patch of status file $status_file="C:\Server\RYL_Server\Release\RYLServerController_status.csv";
$l = file( $status_file );
$obVal = array( );
foreach( $l as $m => $s )
{
list( $n, $v ) = explode( ";", $s );
if ( $m>0 && $n )
{
$objVal[$n] = $v;
}
}
echo '
<tr><td>Total Online: ', $objVal['OnlineNr'], '</tr></td>
<tr><td>Humans: ', $objVal['Humans'], '</tr></td>
<tr><td>Akhans: ', $objVal['Akkans'], '</tr></td>
<tr><td>South Coast: ', $objVal['[MAP]South_Coast[zone:1]'], '</tr></td>
<tr><td>Leihan Spot: ', $objVal['[MAP]Leihan_Spot[zone:2]'], '</tr></td>
<tr><td>Caernavon: ', $objVal['[MAP]Caernavon[zone:8]'], '</tr></td>
<tr><td>Online Peak: ', $objVal['MostOnlineNr'], '</tr></td>
';
?>
solved. closed and move to help/guides