<div>Based on: <a href="https://forums.allie...d.php?t=279234"target="_blank">https://forums.allie...t=279234</a><br /><br /><u><b>Description</b></u><br />Whenever a client is banned, it creates a demo of the last X minutes up to the point where he's banned. Optionally compresses, uploads to ftp and adds to sourcebans as a demo. This doesn't delay the actual ban. (X=tv_delay). Built for CS:GO, but CS:S might work.<br /><br /><u><b>Requirements</b></u><br />GOTV enabled (autorecord can be off)<br /><br /><b><u>Optional Requirements</u></b><br /><a href="https://forums.alliedmods.net/showthread.php?p=1517456" target="_blank">tEasyFTP</a><br /><a href="https://forums.alliedmods.net/showthread.php?t=175063" target="_blank">bzip2</a><br /><a href="https://forums.alliedmods.net/showthread.php?t=152216" target="_blank">curl</a><br /><br /><b><u>Configuration</u></b><br />Setup gotv, with relay on. Something like this:<br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">tv_enable </span><span style="color: #DD0000">"1"
<br /></span><span style="color: #0000BB">tv_relayvoice </span><span style="color: #DD0000">"1"
<br /></span><span style="color: #0000BB">tv_autorecord </span><span style="color: #DD0000">"0"
<br /></span><span style="color: #0000BB">tv_maxclients </span><span style="color: #DD0000">"1"
<br /></span><span style="color: #0000BB">tv_delay </span><span style="color: #DD0000">"300"
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>Plugin configuration(change then compile)<br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">#define UploadFTP //Requires tEasyFTP + curl - Uploads to FTP (config 'demos')
<br />#define Sourcebans //Adds the demo to the ban (UploadFTP needs to be enabled!)
<br />#define sbprefix "sb" //Sourcebans prefix
<br />#define compress //Compress
<br />#define RemoveUncompressed //Remove uncompressed file after compressing
<br />#define RemoveAfterUpload //Remove the demo(compressed if enabled) after uploading to FTP
<br />#define CompressLevel 9 //Compression level to use for BZ2
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>It will only remove files if it was successful compression/upload.<br /><br />For FTP, create tEasyFTP config "demos" and make sure it leads to the demos folder you want. For sourcebans its sourcebans dir/demos/<br /><br />That's about it. Make sure to test it if it works before putting it on live server, the code is awful and not necessarily fully optimized.<br /><br />Thanks to k0nan for idea and testing it out.<br />Thanks to Coolpwner for testing.<br />And thanks to the creators of the tEasyFTP, curl & bzip2.<br /><br /><b><u>Summary</u></b><br />To summarize it, GOTV constantly "records" and has a "memory" of last (tv_delay) seconds. Whenever a ban takes place, it saves that "memory" to a demo and, optionally, uploads to ftp and adds it to sourcebans as a demo to the ban. This doesn't delay the ban. If your tv_delay is 180, it would save the 3 minutes before the ban took place, all the way to the point when the player was banned.<br /><br />Very simple concept, I put it together in couple of minutes so the code is redundant. It works though.</div>
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td><img class="inlineimg" src="https://forums.allie...attach/smx.gif"alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...ecorder.smx</a>(7.3 KB)
</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.sourcemod...58"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1455901434">GetSource</a> (gotv-recorder.sp - 6.3 KB)
</td>
</tr>
</table>
</fieldset>
</div>
Wyświetl pełny artykuł
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse

[CS:GO] Simple GOTV record on ban (19/02/16)
Temat rozp. Adminek AMXX.PL, 19.02.2016 18:14
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych