Quote:
Originally Posted by Jimmy0wns
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
}
|
Is that for the class_query file?
What webhost are you using?
@Abagail: I know, I have a special premade plugin as server monitor, and I cannot use it just because of their " security" . Probably they are blocking the connection with their firewall.