Raised This Month: $ Target: $400
 0% 

how get info from STV?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
busy.orange
Member
Join Date: May 2009
Old 07-25-2009 , 11:10   how get info from STV?
Reply With Quote #1

1.How to get IP/time of STV clients? (tv_clients print's it)

2.

PHP Code:
public Action:Command (args)
{
        
SocketConnect(socketOnSocketConnectedDlOnSocketReceiveDlOnSocketDisconnectedDlurl80);
}
public 
OnSocketDisconnectedDl(Handle:socketany:pack) {PrintToServer ("All done")} 
i this code "All done" don't send by rcon.
becouse "OnSocketDisconnectedDl" calls after "Command"

Last edited by busy.orange; 07-25-2009 at 12:01.
busy.orange is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 07-26-2009 , 00:36   Re: how get info from STV?
Reply With Quote #2

2. That's printing it to the server's console. Use PrintToChatAll() or PrintToConsole() to send it to client's in game.
bl4nk is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 07-26-2009 , 03:54   Re: how get info from STV?
Reply With Quote #3

bl4nk, he wants this reply to be available through rcon. So I am not sure it is possible at all because this reply is delayed.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
busy.orange
Member
Join Date: May 2009
Old 07-26-2009 , 04:12   Re: how get info from STV?
Reply With Quote #4

bl4nk, i will be need to rewrite big part of my plugin to print into clientsconsole(but i still want rcon ^^)
busy.orange is offline
busy.orange
Member
Join Date: May 2009
Old 07-27-2009 , 08:34   Re: how get info from STV?
Reply With Quote #5

1.How to get IP/time of STV clients? (tv_clients print's it)

???
busy.orange is offline
HiJacker
Senior Member
Join Date: Jul 2008
Location: Slovakia
Old 07-30-2009 , 16:44   Re: how get info from STV?
Reply With Quote #6

1.) Local S-TV
Server is started with param:
Code:
./srcds_run -game cstrike ... +ip xx.xxx.xxx.xxx +tv_port 27115
Then it can just get values of cvars "ip" and "tv_port"

2.) Relayed TV
Im not sure much about this, but its like tv_relay (where is IPort, not sure about that port)
__________________
Before you talk to me, I should warn you : Im kind of strange.
HiJacker is offline
Send a message via ICQ to HiJacker
busy.orange
Member
Join Date: May 2009
Old 07-31-2009 , 06:19   Re: how get info from STV?
Reply With Quote #7

@HiJacker
I wan't to track number of STV client's
btw u forgot tv_enable 1
busy.orange is offline
HiJacker
Senior Member
Join Date: Jul 2008
Location: Slovakia
Old 08-06-2009 , 15:10   Re: how get info from STV?
Reply With Quote #8

Code:
21:09:25 tv_status
21:09:25 --- SourceTV Status ---
         Online 01:26, FPS 222.7, Version 3734 (Linux)
         Master "STV Name", delay 10
         Game Time 01:16, Mod "cstrike", Map "de_dust2", Players 12
         Local IP 85.25.236.158:27128, KB/sec In 0.0, Out 0.0
         Local Slots 19, Spectators 0, Proxies 0
         Total Slots 19, Spectators 0, Proxies 0
         Recording to "auto-20090806-2108-de_dust2.dem", length 01:25.
21:09:25 L 08/06/2009 - 21:09:34: rcon from "62.168.72.58:1100": command "tv_status"
__________________
Before you talk to me, I should warn you : Im kind of strange.
HiJacker is offline
Send a message via ICQ to HiJacker
busy.orange
Member
Join Date: May 2009
Old 08-08-2009 , 08:33   Re: how get info from STV?
Reply With Quote #9

HiJacker
plugin can't hook that output.
busy.orange is offline
Sammy-ROCK!
Senior Member
Join Date: Jun 2008
Location: Near Mrs.Lag
Old 08-08-2009 , 19:24   Re: how get info from STV?
Reply With Quote #10

Since RCON uses logs to send messages why don't you try LogToGame?
Sammy-ROCK! 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 18:40.


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