hey.
i rimember i saw that somewhere but i cant find it anymor.
if anyone have link or the script him self please post it here thanks =]
its the online/offline script
and how many players online.
hey.
i rimember i saw that somewhere but i cant find it anymor.
if anyone have link or the script him self please post it here thanks =]
its the online/offline script
and how many players online.
Hope that helps.PHP Code:<?php
$ip = 'IP HERE'; //IP Varaible
$port = 'PORT HERE'; //Port variable
$fp = @fsockopen($ip,$port); //Trys to connect to IP/Port
if ($fp){ // if statement (checks wether $fp connects)
echo "<font color=\"green\">Online</font>"; //Echos a message
} else {
echo "<font color=\"red\">Offline</font>"; //Echos a message
} ?>
thank you very much =]
just the how many members online script i need
This one is a little more complex.
Correct me if I'm wrong, but this is the way I'd do it.
You'll need a Database of somesort.
A Connection to the database.
And a field in the table with players online.
When a player comes online, it changes the value +1 and offline -1.
Just echo that field.
that right.
but i dont know how to wright it in PHP
that why i ask you guys help =]