Raised This Month: $32 Target: $400
 8% 

Auto Demo Recorder (rebuild)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
MoHApX
Junior Member
Join Date: Nov 2010
Location: Russia, Nizhniy Novgorod
Old 01-25-2011 , 08:06   Auto Demo Recorder (rebuild)
Reply With Quote #1

Auto Demo Recorder
by MoHApX

Current Version: 3.0c
Last update: 23.03.2011


Plugin based on F4RR3LL's Auto Demo Recorder:
http://forums.alliedmods.net/showthread.php?t=89459

Thanks to:
Fysiks for menu code

Features:
  • Menu for admin to request demo on player
  • Ability for admin to force start recording demo on client
  • Player notification about demo request
  • Autostart recording demo on client's PC
  • Agreement menu for player
  • Different types of demo filenames: unique, the same, etc.
  • Logging demo filenames, demo requests, etc.
  • Multilingual

Cvars:
  • adr_rec_mode (0/1/2), default: "2"
    0 - turn off this plugin
    1 - autostart recording demo when player puts in server
    2 - start recording demo only when server admin requests it

  • adr_rec_delay "15", default: "15"
    Delay in seconds before start recording demo

  • adr_rec_info (0/1/2), default "1"
    Type of notification player about demo filename when recording starts. There are 3 types:
    0 - only default CS recording message in console
    1 - chat + default CS recording message in console
    2 - hud message + default CS recording message in console

  • adr_menu (0/1), default: "1"
    Turn on/off menu that asks player agreement before autostart recording demo. It's used only when adr_rec_mode is "1".

  • adr_prefix "adr", default: "adr"
    Prefix in demo filename. It can be your project name. It may be needed for player to identify definite demo.

  • adr_demo_name (0/1/2/3), default: "1"
    Demo filename type. There are 4 types:
    0 - recording to one file every demo (_prefix_autorecorded_demo.dem)
    1 - recording to unique file every map (_prefix_mapname_autorecorded_demo.dem)
    2 - recording to unique file each demo (_prefix_mapname_time_date.dem)
    3 - recording to unique file each demo with hash (_prefix_mapname_time_date_MD5-hash.dem)

  • adr_message_delay "60", default: "60"
    Delay in seconds before server shows you recommendation to clean game folder from old demos and information about plugin.
    0 - turn off this message.

  • adr_request_info (0/1/2), default: "2"
    Type of notification player when demo is requested by admin. There are 3 types:
    0 - console
    1 - console + chat
    2 - console + hud message

  • adr_upload_url "your site", default: "Ask server administrator for URL!"
    You may show URL in info messages where the player can upload requested demo

  • adr_obey_immunity (0/1), default: "1"
    0 - ignore player immunity flag
    1 - obey player immunity flag (no demo requests on this player, no kick if refuses to record demo)

  • adr_self_record (0/1), default: "1"
    0 - turn off self-recording function using "amx_record" without arguments
    1 - turn on self-recording function using "amx_record" without arguments

Commands:
  • amx_record <name or #userid>
    If no arguments - it starts to record demo on yourself with demo filename type 2.
    With argument (only for admins with "kick" access level) - it sends demo request to specified player and starts recording demo on his PC with demo filename type 3.

  • amx_recordmenu (only for admins with "kick" access level)
    Shows menu with all players where admin may choose player to request his demo. Usually it's used putting it into "custommenuitems.cfg".
    If server admin requests demo, it will record with demo filename type 3.

  • say /record or say_team /record
    Shows you motd window with information about this plugin.

Changelog:
Code:
23.03.2011 - version 3.0c
* fixed problem with wrong TaskIDs (demos didn't record sometimes)
* added removing tasks when player disconnects
* added cvar "adr_self_record" with ability to turn off self-recording function
* added new message in multilingual file

12.02.2011 - version 3.0b
* fixed double show of messages to client

27.01.2011 - version 3.0a
* fixed self-recording function using "amx_record" command
* fixed some mistakes in lang file
* fixed error in chat message parameters
* some code optimization
* changed default value of cvar "adr_rec_mode" to "2"
* added cvar "adr_rec_info"
* added cvar "adr_obey_immunity"
* added ability to simple change admin access flag to commands
* changed the way of logging
* added ability to turn on/off advanced logging
* motd file changed with new plugin version

25.01.2011 - version 3.0
* initial release
Translations:
PHP Code:
[en] - by MoHApX
[ru] - by MoHApX 
P.s.:
You may turn on advanced logging. You have to uncomment the line in .sma:
Code:
//#define ADR_ADVANCED_LOGGING
You may change admin access level to demo request commands by changing this line in .sma:
Code:
#define ADR_ACCESS_LEVEL ADMIN_KICK
Excuse me for bad English
Attached Files
File Type: sma Get Plugin or Get Source (auto_demo_recorder.sma - 2033 views - 16.0 KB)
File Type: txt auto_demo_recorder.txt (2.1 KB, 1051 views)
File Type: txt motd_adr_info.txt (869 Bytes, 831 views)

Last edited by MoHApX; 03-23-2011 at 06:48.
MoHApX is offline
Send a message via ICQ to MoHApX Send a message via Skype™ to MoHApX
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-25-2011 , 14:50   Re: Auto Demo Recorder (rebuild)
Reply With Quote #2

Another demo recorder...
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
MoHApX
Junior Member
Join Date: Nov 2010
Location: Russia, Nizhniy Novgorod
Old 01-25-2011 , 17:04   Re: Auto Demo Recorder (rebuild)
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
Another demo recorder...
Is it bad? I haven't found anything like this. You may throw it to the trash...
I've done it for myself. And if it is useful for someone else - here it is!
My team has some servers for mid and high skilled players, and sometimes it is really hard to distinguish cheater from high-skilled player. So, this plugin is done to minimize incorrect bans of players. That's all...
MoHApX is offline
Send a message via ICQ to MoHApX Send a message via Skype™ to MoHApX
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-25-2011 , 17:34   Re: Auto Demo Recorder (rebuild)
Reply With Quote #4

https://forums.alliedmods.net/search.php?do=process&query=demo+record&forum choice[]=27
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
.MMYTH.
BANNED
Join Date: Sep 2010
Location: Brasil - RS
Old 01-25-2011 , 17:40   Re: Auto Demo Recorder (rebuild)
Reply With Quote #5

KKK, This is funny...
.MMYTH. is offline
Send a message via MSN to .MMYTH.
MoHApX
Junior Member
Join Date: Nov 2010
Location: Russia, Nizhniy Novgorod
Old 01-25-2011 , 23:50   Re: Auto Demo Recorder (rebuild)
Reply With Quote #6

I've already said everything about it...
MoHApX is offline
Send a message via ICQ to MoHApX Send a message via Skype™ to MoHApX
Old 01-26-2011, 02:58
MoHApX
This message has been deleted by MoHApX.
Old 01-27-2011, 03:56
MoHApX
This message has been deleted by MoHApX.
MoHApX
Junior Member
Join Date: Nov 2010
Location: Russia, Nizhniy Novgorod
Old 02-11-2011 , 20:27   Re: Auto Demo Recorder (rebuild)
Reply With Quote #7

Updated to version 3.0b
MoHApX is offline
Send a message via ICQ to MoHApX Send a message via Skype™ to MoHApX
xSav
Junior Member
Join Date: Jun 2010
Old 03-21-2011 , 13:46   Re: Auto Demo Recorder (rebuild)
Reply With Quote #8

Not bad not bad.. but
last three mounth i use amx_demorecorder.amxx v 1.51 and it's worked fine
yesterday i try to test your recorder - cause i like color hud ^)
and what i saw
1. sometimes when i connect i dont see any hud about record (a use avtorecord in cvar) but demo is writing
2. anytimes when a surfing between my 3 servers (type /server xredirect plugin) - demo dont writing
i meen demo is not rewriting.. first time when i surfing on 2 and 3 server is working
but if a connect through connect ip in console it's rewriting
aslo i'm from russian.. maybe into russian in PM or ICQ
to all sorry for my english
xSav is offline
GuTo
Senior Member
Join Date: Mar 2010
Location: Brazil - SP
Old 03-22-2011 , 09:40   Re: Auto Demo Recorder (rebuild)
Reply With Quote #9

god job
__________________
GuTo is offline
Send a message via Skype™ to GuTo
MoHApX
Junior Member
Join Date: Nov 2010
Location: Russia, Nizhniy Novgorod
Old 03-22-2011 , 11:41   Re: Auto Demo Recorder (rebuild)
Reply With Quote #10

thanks
MoHApX is offline
Send a message via ICQ to MoHApX Send a message via Skype™ to MoHApX
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 12:27.


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