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

Auto Demo Recorder v1.5 [08/06/2009]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Exolent[jNr] (178)
Jay-izi
Senior Member
Join Date: Mar 2008
Location: Estonia Tallinn
Old 02-28-2009 , 04:53   Auto Demo Recorder v1.5 [08/06/2009]
Reply With Quote #1

Auto Demo Recorder

.: Description :.

Have you ever seen, how banned players complained on the admins on the forums and couldn't prove without a recorded demo, that they are not cheaters? This plugin will help players, who played on server(hltv off) and hasn't recorded demo before they have been banned and admins to correctly consider an application for unban. It will automatically start to record a demo to player's cstrike folder after he will connect to the server. I hope it will be really usefull.

.: CVars :.

Turns on/off the plugin.
amx_demo "1/0"
<default: "1">

Swithes between demo modes (0/1/2).
"0" - Demoname determinеs by an amx_demoname CVar.
"1" - Demoname will be a server's IP with Port (amx_demo_name CVar is ignored).
"2" - Demoname will be the hostname (amx_demo_name CVar is also ignored).

amx_demo_mode "0/1/2"
<default: "0">

Turns on/off client SteamID before demoname in messages and demofile.
amx_demo_steamid "1/0"
<default: "0">

Time before demo recording starts in seconds.
(If it is less than 5, it will automatically set to 5, but willn't apply the changes to the console. I recoment to use default settings)

amx_demo_rectime "15"

The name of your demo what will be saved in client's cstrike folder.
amx_demo_name "Autorecorded demo"


The prefix that will be displayed before messages when amx_demo_rectime have passed.
amx_demo_prefix "AMXX"





.: Translations :.
PHP Code:
[en] - by Jay-izi
[nl] - by crazyeffect
[sv] - by DarkGod
[ru] - by Jay-izi
[de] - by master4life
[es] - by ILUSION
[pl] - by FakeNick
[ro] - by tuty
[lt] - by hleV
[pt] - by NGage70
[cz] - by jab
[sr] - RepeR.
[
bg] - dark_style
[lv] - Rels*
[
tr] - xD_1991 
.: Changelog :.
Code:
1.5:
-Fixed a bug when amx_demo_steamid was 1.
-Added new cvar amx_demo_prefix.
-A few code optimizations and corrections.
-Updated ML.

1.4: 
-Plugin optimization and code corrections. Thanks to Exolent.

1.3: 
-Small fixes in plugin and ML file.
-Renamed CVar(I hope, it will be the last time ^^).
-iSName massive changed to 32.
-If amx_demo_rectime is less than 5, it will automatically set to 5, but willn't apply the changes to the console.

1.2: 
-Added demo modes (Thanks for suggetions).
-Used SWITCH instead of IF statements.
-Renamed amx_demorec_start CVar.
-Added replacing signs and other minor fixes.

1.1: 
-Added client SteamID in messeges before demoname if amx_demo_steamid is "1" (Using _ instead of : ).
-Renamed some variables and CVars. 
-Added and edited translations.

1.0: 
-Initial release.
.: ToDo List:.
Any suggetions?
Attached Files
File Type: sma Get Plugin or Get Source (amx_demorecorder.sma - 38619 views - 2.5 KB)
File Type: txt demorecorder.txt (1.7 KB, 20844 views)
__________________


Last edited by Jay-izi; 07-07-2010 at 19:01.
Jay-izi is offline
Send a message via ICQ to Jay-izi Send a message via MSN to Jay-izi Send a message via Skype™ to Jay-izi
Jay-izi
Senior Member
Join Date: Mar 2008
Location: Estonia Tallinn
Old 02-28-2009 , 04:55   Re: Auto Demo Recorder
Reply With Quote #2

I don't know if anybody else has writen this plugin... I seached and didn't find. Then I desided to write and put it here.
__________________


Last edited by Jay-izi; 06-09-2009 at 19:31.
Jay-izi is offline
Send a message via ICQ to Jay-izi Send a message via MSN to Jay-izi Send a message via Skype™ to Jay-izi
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-28-2009 , 05:10   Re: Auto Demo Recorder
Reply With Quote #3

LQL my posts style ftl, gj
__________________
xPaw is offline
Jay-izi
Senior Member
Join Date: Mar 2008
Location: Estonia Tallinn
Old 02-28-2009 , 05:15   Re: Auto Demo Recorder
Reply With Quote #4

xPaw haha, lol i know =))
__________________


Last edited by Jay-izi; 03-03-2009 at 18:34.
Jay-izi is offline
Send a message via ICQ to Jay-izi Send a message via MSN to Jay-izi Send a message via Skype™ to Jay-izi
master4life
Senior Member
Join Date: Mar 2006
Location: Germany
Old 02-28-2009 , 05:25   Re: Auto Demo Recorder
Reply With Quote #5

Thanks for Plugin GJ

here has you German translat
Quote:
[de]
RECORDINGIN = Wir sind jetzt beim Aufnehmen bei deinem cstrike ordner: %s.dem
RECORDINGAT = Demo aufnahme hat begonnen bei %s

Last edited by master4life; 02-28-2009 at 05:27.
master4life is offline
Send a message via ICQ to master4life Send a message via MSN to master4life Send a message via Skype™ to master4life
s3rserii
Senior Member
Join Date: Jan 2010
Old 07-08-2010 , 02:38   Re: Auto Demo Recorder
Reply With Quote #6

Quote:
Originally Posted by master4life View Post
Thanks for Plugin GJ

here has you German translat
wtf translation..?

better
[de]
RECORDINGIN = Wir nehmen gerade eine Demo von dir auf, die Datei befindet sich in deinem cstrike ordner: %s.dem
RECORDINGAT = Die Demo aufnahme hat um %s uhr begonnen.
s3rserii is offline
ToXedVirus
Member
Join Date: Mar 2007
Old 09-16-2010 , 12:05   Re: Auto Demo Recorder v1.5 [08/06/2009]
Reply With Quote #7

Hello. Nice plugin izy, but it had not enough functionality in my eyes. There is this russian dude who wrote "auto_demo_recorder.sma", but the code was so terrible, I had to puke.
Nevermind.

You stated that there is no possible method to get if the player has really started recording. I did some message tracing and when I hit record the following messages are send to the player:

Code:
ResetHUD(79)(OneReliable, 0, -1253463708)();
Money(102)(OneReliable, 0, -1253463708)(int64:800, byte:0);
StatusIcon(107)(OneReliable, 0, -1253463708)(byte:0, string:"c4");
ScoreAttrib(84)(OneReliable, 0, -1253463708)(byte:1, byte:0);
RoundTime(101)(OneReliable, 0, -1253463708)(int16:263);
TeamScore(87)(OneReliable, 0, -1253463708)(string:"CT", int16:0);
TeamScore(87)(OneReliable, 0, -1253463708)(string:"TERRORIST", int16:0);
Health(70)(OneReliable, 0, -1253463708)(byte:100);
Battery(72)(OneReliable, 0, -1253463708)(int16:0);
Train(73)(OneReliable, 0, -1253463708)(byte:0);
CurWeapon(66)(OneReliable, 0, -1253463708)(byte:1, byte:16, byte:12);
ADStop(128)(OneReliable, 0, -1253463708)();
But I don't think this is a good way to check if the demo has really been started recording (I mean catching the message). There must be some other, more decent trigger. we can use.

I took the liberty to add an Lithuanian translation and rewrote your code completely, the translation and the code is available @ http://github.com/txdv/sixplugins/tree/amx_demorecorder

The demo file name is now constant and consists of steamid, nickname, map, time, data, hostname, a custom prefix (can be set by amx_demo_prefix)

The cvars are now:

amx_demo (1|0)
Turn plugin on or off

amx_demo_start_time 15
*How long to wait before starting the demo"

amx_demo_msg (1|0)
Turn message which informs the user on or off

amx_demo_msg_prefix "AMXX"
Modify the string in the brackets: [AMXX] demo has been ...

amx_demo_prefix "AMXX"
Modify the prefix of the filename, usefull if you want to leave your servers name or smth

amx_demo_log (1|0)
enable logging into the amxmodx logs which can be found at addons/amxmodx/logs/

amx_admin_immunity (1|0)
turn on *immunity* for admins, wont issue the record command on admins



Should I open up another forum thread for this plugin? Or do you want to commit the changes in here?
ToXedVirus is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 02-28-2009 , 05:24   Re: Auto Demo Recorder
Reply With Quote #8

Dutch translation:

Quote:
[nl]
RECORDINGIN = We zijn nu een demo aan het opnemen in je cstrike map %s.
RECORDINGAT = Demo oponemen is begonnen op %s
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Atmegaown
Junior Member
Join Date: Oct 2010
Old 04-20-2011 , 17:44   Re: Auto Demo Recorder
Reply With Quote #9

Quote:
Originally Posted by crazyeffect View Post
Dutch translation: [nl]
RECORDINGIN = We zijn nu een demo aan het opnemen in je cstrike map %s.
RECORDINGAT = Demo oponemen is begonnen op %s
Better version (he made a little mistake)
Quote:
RECORDINGIN = We zijn nu een demo aan het opnemen in je cstrike map %s.
RECORDINGAT = Demo opnemen is begonnen op %s
But I'd rather use this (think it's better)
Quote:
RECORDINGAT = Demo opname is begonnen op %s

Last edited by Atmegaown; 04-20-2011 at 17:47.
Atmegaown is offline
Jay-izi
Senior Member
Join Date: Mar 2008
Location: Estonia Tallinn
Old 02-28-2009 , 05:30   Re: Auto Demo Recorder
Reply With Quote #10

Translations updated. Thx
__________________

Jay-izi is offline
Send a message via ICQ to Jay-izi Send a message via MSN to Jay-izi Send a message via Skype™ to Jay-izi
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 15:23.


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