Показать сообщение отдельно
Непрочитано 13.07.2013, 03:29   #6
Аватар для PROGRAMMATOR
Администратор

По умолчанию Re: Расширенный статус сервера php

require_once __PROCORE__ . '/libs/external/steam-condenser/lib/steam-condenser.php';
 
$serverIp = '46.174.48.177';
$serverPort = 27015;
 
$sourceServer = new \SourceServer($serverIp, $serverPort);
 
print_r($sourceServer->getPlayers());
Code: PHP
Код:
     Array
    (
    		[-=TV=-] => SteamPlayer Object
    		(
    				[clientPort:SteamPlayer:private] =>
    				[connectTime:SteamPlayer:private] => -1
    				[extended:SteamPlayer:private] =>
    				[id:SteamPlayer:private] => 0
    				[ipAddress:SteamPlayer:private] =>
    				[loss:SteamPlayer:private] =>
    				[name:SteamPlayer:private] => -=TV=-
    				[ping:SteamPlayer:private] =>
    				[rate:SteamPlayer:private] =>
    				[realId:SteamPlayer:private] =>
    				[score:SteamPlayer:private] => 0
    				[state:SteamPlayer:private] =>
    				[steamId:SteamPlayer:private] =>
    		)
    
    		[ЧЕЧЕН 05-95] => SteamPlayer Object
    		(
    				[clientPort:SteamPlayer:private] =>
    				[connectTime:SteamPlayer:private] => 833.45959472656
    				[extended:SteamPlayer:private] =>
    				[id:SteamPlayer:private] => 1
    				[ipAddress:SteamPlayer:private] =>
    				[loss:SteamPlayer:private] =>
    				[name:SteamPlayer:private] => ЧЕЧЕН 05-95
    				[ping:SteamPlayer:private] =>
    				[rate:SteamPlayer:private] =>
    				[realId:SteamPlayer:private] =>
    				[score:SteamPlayer:private] => 10
    				[state:SteamPlayer:private] =>
    				[steamId:SteamPlayer:private] =>
    		)
    )
PROGRAMMATOR на форуме Отправить сообщение для PROGRAMMATOR с помощью ICQ Отправить сообщение для PROGRAMMATOR с помощью Skype™ Ответить с цитированием