- Joined
- Feb 29, 2008
- Messages
- 4
- Reaction score
- 0
Hi have have a game that calls Deer Hunter 2005 and i want a script that show my members if server is online or offline
have tested some scripts but when i start server do the script shows offline everytime have tested diffrent ports but cant seems to find the right port or is the script crap?
its for phpnuke
but this dont work right
have tested some scripts but when i start server do the script shows offline everytime have tested diffrent ports but cant seems to find the right port or is the script crap?
its for phpnuke
Code:
<?php
// Edit IPs below
$loginIP = ""; // login server
$gameIP = ""; // game server
// Edit Ports if needed
$loginPORT= "";
$gamePORT= "";
// No need to edit below unless you want to skin it
$flogin = fsockopen ("$loginIP",$loginPORT, $errno, $errstr, 1);
if(empty($loginIP) || empty($gameIP){$loginIP="No IP selected";$gameIP="No IP Selected";**
if ($flogin){print "Login Server [$loginIP:$loginPORT]<img src='images/online.png'>";**
else {print "Login Server [$loginIP:$loginPORT]<img src='images/offline.png'>";**
$fgame = fsockopen ("$gameIP",$gamePORT, $errno, $errstr, 1);
if ($fgame){print "Game Server [$gameIP:$gamePORT]<img src='images/online.png'>";**
else {print "Game Server [$gameIP:$gamePORT]<img src='images/offline.png'>";**
?>
Last edited: