I have rcon password.
I use SourceQuery but i dont understand how to get only player name and steam id without other shit inofmration.
How to do that?
I use this code in php.
Quote:
echo $Query->Rcon( 'status' );
|
It prints this shit. I just need name and steam id.
Quote:
hostname: SERVERNAME
version : 48/1.1.2.7/Stdio 2117 secure (10)
tcp/ip : SERVER IP
map : de_dust2 at: 0 x, 0 y, 0 z
players : 1 active (12 max)
# name userid uniqueid frag time ping loss adr
# 1 "test" 42 STEAM_0:1:232323232323232 0 52:16 35 0 44.44444.444.44:27005
1 users
|