Script to start HLTV
I have a few pub servers with HLTVs connected. I'd like them to record gameplay, but I also don't want massive files of nothing happening when the server is empty.
I'm trying to make a script that does something like this: Monitor server. Perhaps check the server every 10 seconds or something, or even every minute. If player joins server, start HLTV record. Continue monitoring every minute. (But don't start a new demo every minute when it sees there is a person - there needs to be something that says "If you're already recording a demo, don't start a new one.") When the server is empty, it stops the demo. How could I do something like this? |
Re: Script to start HLTV
Search
|
Re: Script to start HLTV
Oh, hi, it's wickedd, the most unhelpful poster in the forums!
Turns out, I did search. All I could find was this ridiculous program at hltv.org, which is not what I want. I just want a simple script, not an amxx plugin, which I also don't want because not all of the servers have amxx installed. (Furthermore, my hltv servers are located on a completely different machine on a completely different LAN, so that plugin wouldn't work even if I did have amxx on all my servers.) Maybe you could finally put me on your ignore list so you don't feel the need to constantly post complete and utter shit to my threads all the time? |
Re: Script to start HLTV
Quote:
Oh, I will happily ignore your ass from here on, because I hate dumb@#$ people who are too lazy to search and don't know what they want. Edit: If you don't want a plugin, why would post here smart guy? |
Re: Script to start HLTV
Thanks for pointing out my typo. I DO NOT want an amxx plugin.
I posted here because this is an HLDS server help forum as well as a scripting forum. Thank god you will finally start ignoring me. You and what's-his-face... makes the forum so much more helpful and enjoyable. |
Re: Script to start HLTV
This can be done with PHP and a cronjob. At the moment I don't have much time, but if you can't find another script or solution I'll try to whip up something by the end of the week/beginning of next week.
|
Re: Script to start HLTV
It's not possible with a bash script?
|
Re: Script to start HLTV
the plugin that wickedd is talking about is pretty neat. it works on sockets so your hltv servers doesnt need to be with on same server where your gs is located. plugin talks to your hltv server. the creator that plugin also created a script to zip them. so every so often all your hltv demos will be saved, thus saving you diskpace. in my server, hltv demo per map was about 50 mb. but zipping it made it to 4-5 mb.
|
Re: Script to start HLTV
Quote:
|
Re: Script to start HLTV
Quote:
|
All times are GMT -4. The time now is 22:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.