SA-MP Forums Archive
Server Status - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server Status (/showthread.php?tid=399533)



Server Status - DeCoyz - 14.12.2012

Hello, I am pretty new here in this forums. But I am wondering if someone knows how to do like a server status with HTML?

Here is an example of what I mean:
http://server.dawn-tdm.com/fstatus.php


Re: Server Status - $mooth - 15.12.2012

The ground code is HTML (Design wise)
But the rest is built with php/mysql to check with the database if the server is up and running.

I could help you, if you would like to.


Re: Server Status - DeCoyz - 15.12.2012

I would really appreciate your help.

Do you mind adding me on skype to just make it a bit more simple?

(Jonas.Frisell) or (FrizzieGFX)


Re: Server Status - Djole1337 - 15.12.2012

Just use SampQueryAPI by Westie.


Re: Server Status - DeCoyz - 15.12.2012

This is what I get by using it.


connect()) { // If a successful connection has been made

print_r($query->getInfo()); // Print server info array

print_r($query->getBasicPlayers()); // Print basic players array, connection will time out if the player counter is above 100 and will return an empty array if no players are online

$query->close(); // Close the connection
} else {
echo "Server did not respond!";
}
?>

Then I tried another one I found in replies and got this:
http://prototype-gaming.tk/server-status/ (The first one)


Re: Server Status - DeCoyz - 16.12.2012

Help please?
I planned to do like a new from scratch.. but I need help.. link WILL be:
www.prototype-gaming.tk/server-status.php


Re: Server Status - $mooth - 18.12.2012

DeCoyz contact me on foru, new dawn or skype, got some things to tell you about the GM.!