Register for your free account! | Forgot your password?
Rust Cheats

You last visited: Today at 14:37

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

Advertisement



[Mini-How-PHP]Online player print php

Discussion on [Mini-How-PHP]Online player print php within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
TraxWall's Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 178
Received Thanks: 86
Smile [Mini-How-PHP]Online player print php

Hi.

Mini howto release php

Online player print php
PHP Code:
<?php
$select 
"SELECT id,name,last_play FROM player.player WHERE DATE_SUB(NOW(), INTERVAL 70 MINUTE) < last_play;";
$query mysql_query($select);
while(
$fetch mysql_fetch_object($query)) {
?>


<p><b><font color="green">Online Player : </font></b><?php echo $fetch->name?> </p>
Sory bad english.
TraxWall is offline  
Thanks
1 User
Old 03/25/2013, 17:43   #2
 
.Xilent's Avatar
 
elite*gold: 12
Join Date: Jun 2012
Posts: 978
Received Thanks: 860
Just as you said it's a mini release, so it belongs to
.Xilent is offline  
Thanks
1 User
Old 03/25/2013, 17:54   #3
 
.Nexus''s Avatar
 
elite*gold: LOCKED
Join Date: Jan 2012
Posts: 807
Received Thanks: 245
Please post your php code like this:
PHP Code:
CODE 
CODE 
.Nexus' is offline  
Thanks
2 Users
Old 03/25/2013, 21:42   #4
 
elite*gold: 0
Join Date: Oct 2007
Posts: 131
Received Thanks: 10
this is not good system INTERVAL 70 MINUTE) < last_play;

i search for one ther say how mutsh online now!
FCPorto15 is offline  
Thanks
1 User
Old 03/25/2013, 21:43   #5
 
TraxWall's Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 178
Received Thanks: 86
Fully adjustable ...
TraxWall is offline  
Thanks
1 User
Old 03/25/2013, 23:32   #6
 
elite*gold: 0
Join Date: Feb 2013
Posts: 268
Received Thanks: 425
Kommt zu kleine Releases
Baum' is offline  
Thanks
1 User
Old 03/25/2013, 23:41   #7
 
Stαgє6's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 2,019
Received Thanks: 1,471
Not bad but this is easy to make... and is in all homepages
Stαgє6 is offline  
Thanks
1 User
Old 03/25/2013, 23:49   #8
 
balika01's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 179
Received Thanks: 350
wtf is this?! xD
correct way:
get this form game (channel)
PHP Code:
<?
function GetUserCount($ip$port)
{
    
$socket socket_create(AF_INETSOCK_STREAMSOL_TCP);
    
$result socket_connect($socket$ip$port);
    
    
$query "@USER_COUNT\n";
    
    
$write_res socket_write($socket$querystrlen($query));
    
$recv_res socket_recv($socket$output50560);
    
socket_close($socket);
    
    
$output substr($output17);
    
    return array(
        
"shinsoo" => intval(substr($output0, -7)),
        
"chunjo" => intval(substr($output0, -5)),
        
"jinno" => intval(substr($output0, -3)),
        
"unknown" => intval(substr($output0, -1))
    );
}
$count GetUserCount("your.server.ip"13000);
echo 
"Shinsoo: " $count["shinsoo"] . "<br>";
echo 
"Chunjo: " $count["chunjo"] . "<br>";
echo 
"Jinno: " $count["jinno"] . "<br>";
echo 
"?: " $count["unknown"] . "<br>";
echo 
"All: " . ($count["shinsoo"] + $count["chunjo"] + $count["jinno"] + $count["unknown"]) . "<br>";
?>
balika01 is offline  
Thanks
3 Users
Old 03/26/2013, 00:18   #9
 
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
Quote:
Originally Posted by balika01 View Post
PHP Code:
    return array(
        
"shinsoo" => intval(substr($output0, -7)),
        
"chunjo" => intval(substr($output0, -5)),
        
"jinno" => intval(substr($output0, -3)),
        
"unknown" => intval(substr($output0, -1))
    ); 
Wtf is that?! What if the user count for a reign is > 9? Just use , that's what it's made for, dude...
ricky92 is offline  
Thanks
2 Users
Reply

Tags
php, player


Similar Threads Similar Threads
[B] Mini Mp3 Player [S] Cash/ÜB
07/20/2012 - Trading - 1 Replies
Was ich biete: 3x Mini Mp3 Player mit Integriertem Akku, 3-5h Laufzeit. Zustand: 2 Sind Original verpackt, 1 ist geöffnet(Schwarzer!) Preis: 10€ Stück +Versand Bild: http://s1.directupload.net/file/d/2955/tej6bjry_j pg.htm Könnt euch Per PN, Skype, etc. melden.
PHP - print
06/21/2012 - Web Development - 10 Replies
Huhu, habe ein Problem zum print-Befehl von PHP. Habe diesen Quellcode hier: Ich möchte gerne das Ergebnis hier (ist jetzt ein Beispiel-Datum):
[WTB] unded mini ghostly/mini panada/mini polar bear
05/07/2012 - Guild Wars Trading - 2 Replies
Hi, Would like to buy one of those pets. Make me an offer if you got one. Thanks.
[08.01.2010] Aless D3D Mini | Player,- ZombieOPK, Telekill, UserControl, GMWarning
01/08/2011 - WarRock Hacks, Bots, Cheats & Exploits - 15 Replies
Aless D3D Mini Name: Aless D3D Mini Update Date: 08.01.2010 Status: Detected Hallo, ich habe mir gedacht, das ich eine Mini-Version rausbringe. Ich meine, wofür braucht man so viele Funktionen die man garnicht benutzt. Dann muss man immer im Hack die Funktionen suchen und so weiter. Hier sind nur die Funktionen, die am meisten benutzt werden. Screen:



All times are GMT +1. The time now is 14:40.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.