Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require "include/samp_query.php";
- $serverIP = "";
- $serverPort = ;
- try
- {
- $rQuery = new QueryServer( $serverIP, $serverPort );
- $aInformation = $rQuery->GetInfo( );
- $aServerRules = $rQuery->GetRules( );
- $aBasicPlayer = $rQuery->GetPlayers( );
- $aTotalPlayers = $rQuery->GetDetailedPlayers( );
- $rQuery->Close( );
- }
- catch (QueryServerException $pError)
- {
- echo 'Server is offline';
- }
- if(isset($aInformation) && is_array($aInformation)){
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement