This site is a testing version, but all data is shared with the live forum.


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

SourceTV client count


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
F2dk
Junior Member
Join Date: Mar 2009
Old 12-25-2010 , 16:11   SourceTV client count
Reply With Quote #1

Hey everybody

Is it possible to retrieve the number of clients that are currently on the local SourceTV using SourceMod (and possibly SDKHooks)?

Normally I'd use the tv_clients command but in SourceMod it is not possible to read responses from rcon commands.

Thanks in advance
F2dk is offline
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 12-25-2010 , 16:15   Re: SourceTV client count
Reply With Quote #2

On tab menu, left corner. There is SourceTV, which counts users online i guess. It should be possible to get the number. In sourcemod, you can't read rcon command, but via ssh, i think you could.
MindeLT is offline
Send a message via Skype™ to MindeLT
F2dk
Junior Member
Join Date: Mar 2009
Old 12-25-2010 , 16:21   Re: SourceTV client count
Reply With Quote #3

Hi MindeLT

I want to retrieve the client count using SourceMod. Let's say I want to make a SourceMod plugin where a player can write "stv" in the chat and then it responds with the number of SourceTV clients currently connected to the sourcetv.

F2
F2dk is offline
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 12-25-2010 , 16:23   Re: SourceTV client count
Reply With Quote #4

Yeah, i get it. But, the thing is, that I dont really have an experiance with SourceTV. So i can't help you with this question. :/

I found something interesting. Maybe this could help you. You could make server execute command via console, and then get status.

http://developer.valvesoftware.com/wiki/SourceTV

Last edited by MindeLT; 12-25-2010 at 16:26.
MindeLT is offline
Send a message via Skype™ to MindeLT
F2dk
Junior Member
Join Date: Mar 2009
Old 12-25-2010 , 16:34   Re: SourceTV client count
Reply With Quote #5

The idea is good but in SourceMod it is unfortunately not possible to read responses from console commands. So tv_status or tv_clients won't do the job.
F2dk is offline
Reply



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 00:05.


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