View Single Post
Author Message
4ever16
Veteran Member
Join Date: Apr 2015
Old 02-12-2020 , 08:44   Get players and steam id with php rcon
Reply With Quote #1

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

Last edited by 4ever16; 02-16-2020 at 18:46.
4ever16 is offline