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] [Engineer] Teleporter Filter


  • 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 488
  • Lokalizacja:AMXX.PL
Offline

Napisano 10.07.2016 01:50

<div>Sometimes we're playing Engineer and that damn Scout takes the Teleporter over the Medic or Heavy.<br /><br />I was playing on a pub and I had 4 bad snipers on my team and I really wished they could switch classes. Another man overheard me bitching about said 4 sniper and blurted out &quot;if only you could filter teleporters...&quot;<br /><br />Little did he know that I code plugins for tf2 :twisted:<br /><br />Thus, I present the Teleporter Filter!<br /><br />this plugin allows Engineers to filter who can take their teleporters whether by name or by class.<br /><br />Commands list<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">sm_admin_telefilterreset</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">an&nbsp;Admin&nbsp;command</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">forcefully&nbsp;resets&nbsp;player</span><span style="color: #DD0000">'s&nbsp;Teleporter&nbsp;Filter.<br />sm_telefilter:&nbsp;let'</span><span style="color: #0000BB">s&nbsp;you&nbsp;filter&nbsp;players&nbsp;by&nbsp;name&nbsp;</span><span style="color: #007700">or&nbsp;class&nbsp;</span><span style="color: #0000BB">from&nbsp;using&nbsp;your&nbsp;teleporters</span><span style="color: #007700">.<br /></span><span style="color: #0000BB">sm_resettelefilter</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">Let</span><span style="color: #DD0000">'s&nbsp;you&nbsp;reset&nbsp;your&nbsp;Teleporter&nbsp;Filter.&nbsp;
<br /></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>For the sake of preventing trolling or griefing, I'd added some precautions to the plugin.<br /><br />One precaution is that Engineers cannot block over 50% (by default, is a cvar) of their team<br /><br />Another precaution is that Admins can forcefully reset any or all Engineer tele filters back to nothing.<br /><br />Cvars<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">telefilter_enabled&nbsp;</span><span style="color: #DD0000">"1.0"<br /></span><span style="color: #0000BB">telefilter_blockpercentage&nbsp;</span><span style="color: #DD0000">"0.5"&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div></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/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...07"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1468111840">GetSource</a> (tele_filter.sp - 8.0 KB)


</td>
</tr>
</table>
</fieldset>


</div>

Wyświetl pełny artykuł




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

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