Raised This Month: $51 Target: $400
 12% 

Solved Get players and steam id with php rcon


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode