se pune acest cod in <head> intr-un index.php (daca il aveti in .html doar schimbati extensia in .php si o sa functioneze normal lol)
<?php
require 'samp_query.php';
$serverIP = 'ruby.nephrite.ro';
$serverPort = 7777;
try
{
$rQuery = new QueryServer($serverIP, $serverPort);
$aInformation = $rQuery->GetInfo();
$aServerRules = $rQuery->GetRules();
$aBasicPlayer = $rQuery->GetPlayers();
$aTotalPlayers = $rQuery->GetDetailedPlayers();
$rQuery->Close();
}
catch (QueryServerException $pError)
{
echo 'Connection refused';
}
?>
apoi puneti acest fisier (pe care l-am atasat) in folderul principal sau unde aveti voi index.php
bafta la facut banii pe un joc mort lol
samp_query.php
am uitat sa mentionez sa puneti acest cod unde vreti voi sa puteti lua numarul de playeri nus sa mai editez pe platforma asta lol x2
<a><?php echo $aInformation['Players']; ?> / <?php echo $aInformation['MaxPlayers']; ?> JUCATORI ONLINE</a>