14.03.2016, 11:39
[PHP] Ayuda Online y Offline
Quote:
<?php require "SampQueryAPI.php"; $serverIP = "127.0.0.1"; $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) {} ?> |
Quote:
<span id="rols2" style="color:Red"> OFFLINE </span><span id="rols2" style="color:Red">ONLINE</span> |