29.04.2015, 17:25
The PHP code I use is this:
PHP код:
// be sure to include the api before this, not the RCON API but the normal API. - I made the same mistake before by using the RCON API
$query = new SampQueryAPI('176.31.142.113', '7777');
$aInformation = $query->getInfo();
if($query->isOnline()) {
// server is online, show the iframe here
} else {
// server is offline, show an offline message here
}