hehe good old HL/CS live stats
// uncomment this part and change the IP HERE
$myserver=new madQuery("63.99.222.178",27015);
$myserver->getdetails();
$myserver->getplayers();
echo $myserver->mHostname().": ".$myserver->mActive()." / ".$myserver->mMax();
echo "Server is ".($myserver->mIsSecure() ? "" : "NOT ")."secure!\n";
uncomment and it should work (once you set a proper IP in madQuery init).
I developped the same kind of tool for SOFII (new protocol parser) and adapted it to run for EF, RtCW and soon Enemy Territory 🙂