mcpan313
02-20-2012, 00:12
] status
hostname: Test
version : 2.1.0.0 4777 secure (unknown)
udp/ip : 111.15.108.180:27015 [ public same ]
os : Windows Dedicated
map : c1m4_atrium
players : 0 humans, 0 bots (10 max) (not hibernating) (unreserved)
# userid name uniqueid connected ping loss state rate adr
#end
I want get the server <version> <udp/ip> and <players> info,
is there have same netprop about server resource?
solved:
use ServerCommandEx (http://docs.sourcemod.net/api/index.php?fastload=show&id=981&) get and process this reply string
not work on tf2, l4d2 and later.
*edit:
use Socket (https://forums.alliedmods.net/showthread.php?t=67640) Get A2S_INFO (https://developer.valvesoftware.com/wiki/Server_Queries#A2S_INFO)
hostname: Test
version : 2.1.0.0 4777 secure (unknown)
udp/ip : 111.15.108.180:27015 [ public same ]
os : Windows Dedicated
map : c1m4_atrium
players : 0 humans, 0 bots (10 max) (not hibernating) (unreserved)
# userid name uniqueid connected ping loss state rate adr
#end
I want get the server <version> <udp/ip> and <players> info,
is there have same netprop about server resource?
solved:
use ServerCommandEx (http://docs.sourcemod.net/api/index.php?fastload=show&id=981&) get and process this reply string
not work on tf2, l4d2 and later.
*edit:
use Socket (https://forums.alliedmods.net/showthread.php?t=67640) Get A2S_INFO (https://developer.valvesoftware.com/wiki/Server_Queries#A2S_INFO)