Raised This Month: $95 Target: $400
 23% 

HLTV Autorecord


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Exolent[jNr] (178)
draft
Senior Member
Join Date: Jul 2007
Location: Russia, Saint-Petersburg
Old 11-18-2009 , 22:19   HLTV Autorecord
Reply With Quote #1

Description:
This is a simple and usefull plugin designed for servers, that want to use autorecording hltv, but dont want to have empty demos when there are no players (at night, for example).
So, when hltv is connected, plugin will check minimal amount of players defined by the cvar and if it is not recording, it will start record. When the amount of players is lower than this cvar, hltv stops recording.
You can also define the path, where the demo will be stored.
Note:
1. If u have 2 or more HLTV in server, the only first connected will record.
2. To enable plugin without reading this flood about cvars just do:
2.1 Create cstrike/demos folder.
2.2 Find hltv.cfg and change adminpassword "hltvadminpass"
2.3 Add hltv_autorecord.amxx into cstrike/addons/configs/plugins.ini
Cvars:
autohltv_record 1 - enables autorecording
autohltv_path "demos/HLTV" - it means, that you will have "cstrike/demos/HLTV-12389034.dem". If you want to put the demos into ctrike folder, just make this cvar empty.
autohltv_ignorebots 1 - ignore bots as real players, it means that plugin will not count them at all (look next cvar). If you have bots, then change this cvar to 0 and change map on the server (or restart).
autohltv_minplayers 2 - minimum number of players in game to start recording hltv
autohltv_pass "hltvadminpass" - the pass to control hltv. Go to the hltv.cfg and find adminpassword there. Now you can change it to this or any other that you define by this cvar.
autohltv_recording 1|0 - automatic cvar, dont touch it if you dont know what you do. You can use it in server monitoring to find whether hltv is recording or not.
autohltv_time 0|1|2, 2 is default. 0 - no timer show as hudmessage. 1 - timer only for hltv. 2 - for all players. This may be usefull to set 2 for public servers, because it is not bad to know every second what the time is and you can use 1 for showing the time only for hltv, so you will see it in hltv demo and check the real time and match with time in your logs.
autohltv_delay 30.0 - delay should be equal to delay in hltv.cfg (director.cfg) of HLTV-server configuration file.
Required modules:
<sockets>
Credits:
Infra
Changelog:
1.7 - major update and added "autohltv_delay 30.0" cvar
1.6 - update of this plugin (final fix versus server crashing).
1.5 - Final fix versus server crash and added time showing feature for hltv or for all players set by default (configured by the cvar - read above). This will work as soon, as hltv is connected to server (so do not expect any if you dont have hltv)
1.3 - Fix versus server crashing (hope, the last one)
1.2 - Fix versus server crashing
1.1 - Fix versus server crash and added cvar for announcing, that hltv is recording.
1.0 - Initial release.

p.s. For hltv correct storage, there is php script in russian language. To correctly split demo name, use the autohltv_path "demos/HLTV" or just "HLTV". Credits to One, Timmy and a little bit for me

p.p.s Arch.php.gz is a crontab-usage php-script if you have hltv server and web-server on the same machine. It will automatically compress the demos into zip and put them from your hlds/cstrike/demos/server1 folder into /srv/http/demos/server1 (i mean, to your http path). Before using change the pathes inside the script. After it is ready, simply create a file, for example, "cron_demos"
Code:
SHELL=/bin/bash
0-59 * * * * php /path_to_arch.php/arch.php
and execute
Code:
crontab cron_demos
That is full auto demo routine, you can see, how it works here http://demo.overpro.ru/demos/pub (russian language only)
Attached Thumbnails
Click image for larger version

Name:	hltv.jpg
Views:	1765
Size:	13.5 KB
ID:	55353  
Attached Files
File Type: gz index.php.gz (1.3 KB, 3651 views)
File Type: gz arch.php.gz (883 Bytes, 3265 views)
File Type: sma Get Plugin or Get Source (hltv_autorecord.sma - 7000 views - 7.3 KB)
__________________

Last edited by draft; 05-17-2010 at 11:52.
draft is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 11-18-2009 , 23:05   Re: HLTV Autorecord
Reply With Quote #2

Nice!
Zombiezzz is offline
soolt
BANNED
Join Date: Aug 2009
Location: Lithuania
Old 11-19-2009 , 01:26   Re: HLTV Autorecord
Reply With Quote #3

simple and usefull
soolt is offline
Send a message via Skype™ to soolt
worldspawn
Senior Member
Join Date: Aug 2009
Location: Russia, Yekaterinburg
Old 11-19-2009 , 14:37   For mother Russia
Reply With Quote #4

good job, usefull
worldspawn is offline
Send a message via ICQ to worldspawn Send a message via Skype™ to worldspawn
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-19-2009 , 21:08   Re: HLTV Autorecord
Reply With Quote #5

I Like It,Good Job
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
HUNTERxp
Junior Member
Join Date: Jul 2006
Location: Russia, Perm
Old 11-20-2009 , 00:11   Re: HLTV Autorecord
Reply With Quote #6

Thank you!

Было супер, если бы ещё имя демки содержало ВРЕМЯ начала записи. Заранее спасибо!
If you can add TIMESTAMP in demoname, it will be wonderful! Thanks in advance!
__________________
AMXX v1.8.1 / METAMOD v1.19/1.19p28
www.hunterxp.ru

Last edited by HUNTERxp; 11-20-2009 at 06:46. Reason: Additional wish
HUNTERxp is offline
Send a message via ICQ to HUNTERxp
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 11-20-2009 , 06:05   Re: HLTV Autorecord
Reply With Quote #7

GJ but i will never play on a war server with amxx.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
worldspawn
Senior Member
Join Date: Aug 2009
Location: Russia, Yekaterinburg
Old 11-20-2009 , 06:25   Re: HLTV Autorecord
Reply With Quote #8

Quote:
Было супер, если бы ещё имя демки содержало ВРЕМЯ начала записи. Заранее спасибо!
А разве когда демка начинает записыватся, её имя не содержит этого?
worldspawn is offline
Send a message via ICQ to worldspawn Send a message via Skype™ to worldspawn
HUNTERxp
Junior Member
Join Date: Jul 2006
Location: Russia, Perm
Old 11-20-2009 , 06:45   Re: HLTV Autorecord
Reply With Quote #9

Quote:
Originally Posted by worldspawn View Post
А разве когда демка начинает записыватся, её имя не содержит этого?
Вот что на тесте получилось: HLTV-0911200727-de_dust2.dem
Необъяснимое число 27
__________________
AMXX v1.8.1 / METAMOD v1.19/1.19p28
www.hunterxp.ru
HUNTERxp is offline
Send a message via ICQ to HUNTERxp
draft
Senior Member
Join Date: Jul 2007
Location: Russia, Saint-Petersburg
Old 11-20-2009 , 08:29   Re: HLTV Autorecord
Reply With Quote #10

Формат демки HLTV-годмесяцденьЧАСЫМИНУТЫ-карта.dem
Вот и получилось 2009.11.20 07:27
__________________
draft 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 14:25.


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