Skocz do zawartości

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[TF2] Anti-Intelligence Spam (1.0, 8/16/2014)


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 476
  • Lokalizacja:AMXX.PL
Offline

Napisano 16.08.2014 03:24

<!-- BEGIN TEMPLATE: postbit_external -->
<div><font size="2"><b>Description:</b></font><br />I had the thought the other night after seeing intel spamming &quot;I wonder if anyone has written a plugin to stop that,&quot; so I searched for it using Google and the plugin search on the SourceMod site. After nothing came up I decided to write it myself.<br /><br />This plugin quite simply keeps track of when the event and sound for the intelligence being picked up or dropped and compares it against a timeout value. If the timeout period hasn't elapsed the event or sound is prevented from being broadcast. Players can still pick up the intel in the timeout period, it just won't be announced.<br /><br />Also each player has their times tracked differently, so innocent players for the most part will be unaffected by this. But with the sounds the times are tracked globally since I am unaware of a way to track those for each player.<br /><br />I high recommend you go into your cfg/sourcemod folder, open up the auto generated tf2anti-intelspam.cfg and customize the timeout values to your liking.<br /><br /><font size="2"><b>Cvars:</b></font><br /><ul><li>antiintelspam_version - Version Cvar, not much else to say.</li>
<li>antiintelspam_timeout (default: 3) - The amount of time in seconds that a player must wait before the fact that they have picked up or dropped the intel will be rebroadcast to the other players.</li>
<li>antiintelspam_soundtimeout (default: 3) - The amount of time in seconds that the plugin will delay the announcer from, well announcing that the intel has been picked up or dropped.</li>
</ul><br /><font size="2"><b>Changelog:</b></font><br /><br /><!-- BEGIN TEMPLATE: bbcode_quote_printable -->
<div style="margin:20px; margin-top:5px; ">
<div class="smallfont" style="margin-bottom:2px">Quote:</div>
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2">
<hr />

8/16/2014 - 1.0<br /><br />* Initial Release.

<hr />
</td>
</tr>
</table>
</div>
<!-- END TEMPLATE: bbcode_quote_printable -->PS. To all you programmers out there, I'm eager to get some (constructive) feedback on my code and what I could have done better. If you take the time to do so it is appreciated.</div>


<br /> <div style="padding:6px">








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...s/attach/sp.gif" alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...?file_id=136946"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1408155480">Get Source</a> (tf2anti-intelspam.sp - 4.7 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>


</div>

<!-- END TEMPLATE: postbit_external -->

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych