Monthly Target: $400 Donations: $147
 36% 

SourceTV admin demorecord (sb_status/status support)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
urus
Senior Member
Join Date: Jan 2007
Plugin ID:
339
Plugin Version:
0.4
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    112 
    Plugin Description:
    It`s admin tool for sourceTV demo recording
    Old 03-31-2008 , 14:17   SourceTV admin demorecord (sb_status/status support)
    Reply With Quote #1


    Click image for larger version

Name:	demorec.jpg
Views:	4852
Size:	87.3 KB
ID:	25164


    Log Example

    Quote:
    L 03/31/2008 - 18:25:19: Admin <testadmin> <STEAM_0:0:xxxxxxx> start record a demo 2008.03.31_18-25-de_dust2 (7 minutes)
    L 03/31/2008 - 18:32:18: Demo record stopped on time elapsed
    L 03/31/2008 - 18:32:18: -----------------------------------
    L 03/31/2008 - 18:33:46: Admin <testadmin> <STEAM_0:0:xxxxxxx> start record a demo 2008.03.31_18-33-de_dust2 (20 minutes)
    L 03/31/2008 - 18:36:33: Admin "testadmin<3><STEAM_0:0:xxxxxxx><>" stopped record a demo
    L 03/31/2008 - 18:36:33: -----------------------------------
    L 03/31/2008 - 18:37:12: Admin <testadmin> <STEAM_0:0:xxxxxxx> start record a demo 2008.03.31_18-37-de_dust2 (10 minutes)
    L 03/31/2008 - 18:38:14: Stop recording demo on ClientDiscconnect
    L 03/31/2008 - 18:38:14: -----------------------------------
    Description

    This is admin tool for sourceTV demo recording. As example it`s good for silently catch cheaters.
    Demo record will autostop if time elapsed or if admin leave server (can be disabled by cvar).
    Demo record can stop only that admin who has begun record.
    Admin rights for use this plugin is o (Admin_Custom1).


    Requirements

    Enabled SourceTV on server (tv_enable 1)


    Console commands
    • demorec - display menu for record, stop, check status (bypass admin menu)
    • demorecon - command for start record with user defined time in minutes (demorecon 3/demorecon 12, etc)
    • demorecoff - command for stop record
    • demodump - send sb_status or status* command to sourceTV


    Cvars
    • demorec_times -comma delimited! Time in minutes for record time menu. You can edit/delete/add your own time. Max 14 items! (default value "0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60")
    • demorec_status - this option determines if sb_status or status command can be executed while recording a demo (0 - disable; 1 - sb_status; 2 - status*; default value "0")
    • demorec_status_time - time in seconds (after record start) when sb_status/status will be executed (0 - disable; default value "0")
    • demorec_onadmin_leave - should demo record autostop when admin disconnect from server (0 - disable; default value "1")
    • demorec_folder - directory where server store demos. If this cvar empty, demos will store in root directory (cstrike, dod, tf, etc.). If you fill this cvar you must create folder in mod's root directory with the same name! (default value "")
    • demorec_log -enable/disable logging to a file demorec.log (default value "1")


    Installation

    1. Copy srctv_demorec.smx into sourcemod\plugins folder
    2. Copy plugin.demorecord.txt into sourcemod\translations folder
    3. Optional: change setting in mod_folder\cfg\sourcemod\plugin_demorec.cfg (this file will be automatically created after first plugin load)
    4. Optional: if you fill cvar demorec_folder then create folder in mod's root directory with the same name. For linux users - srcds must have write access to this folder.


    * about status command

    It fake status command.
    I just send information in SourceTV`s chat (PrintToChat). See screenshot.

    Q: Ок, why you don`t use PrintToConsole?
    A: Because SourceMod terminate PrintToConsole message which was send to a bot:

    Code:
    static cell_t sm_PrintToConsole(IPluginContext *pCtx, const cell_t *params)
    {
           bla-bla.....
    
           /* Silent fail on bots, engine will crash */
           if (pPlayer->IsFakeClient())
          {
            return 0;
          }
    
          bla-bla.....
    }

    Changelog:

    0.4
    cleanup and optimize code

    added commands:
    demorec
    demodump

    added cvars:
    demorec_times
    demorec_status
    demorec_status_time
    demorec_onadmin_leave
    demorec_folder
    demorec_log

    slightly changed demo names - dots (.) replaced with dash (-)
    translation file updated!

    0.3
    Integrated into sm_admin menu (server commands tab)
    Added infinite demo record (command demorecon 0)
    Now demo can be recorded from server console (command demorecon)
    translation file updated!

    0.1
    Release


    Function for check status taken from warmup plugin
    Attached Files
    File Type: smx srctv_demorec.smx (10.4 KB, 900 views)
    File Type: sp Get Plugin or Get Source (srctv_demorec.sp - 1334 views - 17.7 KB)
    File Type: txt plugin.demorecord.txt (3.1 KB, 1157 views)
    __________________

    Last edited by urus; 07-22-2010 at 07:40.
    urus is offline
    Davethegreat
    Senior Member
    Join Date: Nov 2007
    Old 03-31-2008 , 16:10   Re: SourceTV admin demorecord
    Reply With Quote #2

    Question how do you set up sourcetv?
    Davethegreat is offline
    Send a message via AIM to Davethegreat
    CRJackyd
    SourceMod Donor
    Join Date: Sep 2007
    Old 03-31-2008 , 16:15   Re: SourceTV admin demorecord
    Reply With Quote #3

    Put this in your cstrike/cfg/server.cfg

    tv_enable 1

    Nice plugin, will be testing this one
    CRJackyd is offline
    urus
    Senior Member
    Join Date: Jan 2007
    Old 03-31-2008 , 17:20   Re: SourceTV admin demorecord
    Reply With Quote #4

    Upss... sorry fixed small bug with phrase translation.
    Please redownload plugin.

    Quote:
    Originally Posted by CRJackyd
    Nice plugin, will be testing this one
    Thanks =)
    __________________
    urus is offline
    Harley
    Member
    Join Date: Aug 2006
    Old 03-31-2008 , 19:19   Re: SourceTV admin demorecord
    Reply With Quote #5

    is the demo ok for steambans can sb_status inside
    Harley is offline
    urus
    Senior Member
    Join Date: Jan 2007
    Old 03-31-2008 , 19:58   Re: SourceTV admin demorecord
    Reply With Quote #6

    Quote:
    Originally Posted by Harley View Post
    is the demo ok for steambans can sb_status inside
    Give me more information about sb_status please.
    Where should be this sb_status?
    __________________
    urus is offline
    Harley
    Member
    Join Date: Aug 2006
    Old 03-31-2008 , 21:07   Re: SourceTV admin demorecord
    Reply With Quote #7

    At the beginning of a demo must be involved in the console sb_status is almost like status
    The steam id be listed in the console

    http://www.steambans.com/support.php?c=info&page=htrad

    I hope I could help

    Unfortunately, my English is very bad
    Harley is offline
    Solltex
    Member
    Join Date: Dec 2004
    Old 04-02-2008 , 13:15   Re: SourceTV admin demorecord
    Reply With Quote #8

    L 04/02/2008 - 052:04: [SM] Native "GetClientAuthString" reported: Client index 0 is invalid
    L 04/02/2008 - 052:04: [SM] Displaying call stack trace for plugin "srctv_demorec.smx":
    L 04/02/2008 - 052:04: [SM] [0] Line 207, /home/groups/alliedmodders/forums/files/2/4/3/9/0/25172.attach::Startdemo()
    L 04/02/2008 - 052:04: [SM] [1] Line 301, /home/groups/alliedmodders/forums/files/2/4/3/9/0/25172.attach:emoreconConsole()
    Solltex is offline
    Extreme_One
    Veteran Member
    Join Date: Nov 2006
    Old 04-02-2008 , 16:24   Re: SourceTV admin demorecord
    Reply With Quote #9

    Superb!

    This will solve a few issues I've been having

    Thank you.
    __________________
    Extreme_One is offline
    urus
    Senior Member
    Join Date: Jan 2007
    Old 04-02-2008 , 20:37   Re: SourceTV admin demorecord
    Reply With Quote #10

    Quote:
    Originally Posted by Harley View Post
    At the beginning of a demo must be involved in the console sb_status is almost like status
    The steam id be listed in the console
    http://www.steambans.com/support.php?c=info&page=htrad

    I hope I could help
    Unfortunately, my English is very bad
    My english is`t good too =).

    Sorry but i don`t know, how result of sb_status command can be displayed in scrtv demo. sb_status/status commands being executed in server console don`t broadcast.

    Quote:
    Originally Posted by Solltex
    L 04/02/2008 - 052:04: [SM] Native "GetClientAuthString" reported: Client index 0 is invalid
    L 04/02/2008 - 052:04: [SM] Displaying call stack trace for plugin "srctv_demorec.smx":
    L 04/02/2008 - 052:04: [SM] [0] Line 207, /home/groups/alliedmodders/forums/files/2/4/3/9/0/25172.attach::Startdemo()
    L 04/02/2008 - 052:04: [SM] [1] Line 301, /home/groups/alliedmodders/forums/files/2/4/3/9/0/25172.attach:emoreconConsole()
    Command demorecon executed from server console, but it client (player`s) console command.
    __________________
    urus is offline
    Reply


    Thread Tools
    Display Modes

    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 09:42.


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