<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 "if only you could filter teleporters..."<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">: </span><span style="color: #0000BB">an Admin command</span><span style="color: #007700">, </span><span style="color: #0000BB">forcefully resets player</span><span style="color: #DD0000">'s Teleporter Filter.<br />sm_telefilter: let'</span><span style="color: #0000BB">s you filter players by name </span><span style="color: #007700">or class </span><span style="color: #0000BB">from using your teleporters</span><span style="color: #007700">.<br /></span><span style="color: #0000BB">sm_resettelefilter</span><span style="color: #007700">: </span><span style="color: #0000BB">Let</span><span style="color: #DD0000">'s you reset your Teleporter Filter.
<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 </span><span style="color: #DD0000">"1.0"<br /></span><span style="color: #0000BB">telefilter_blockpercentage </span><span style="color: #DD0000">"0.5"
<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ł
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
[TF2] [Engineer] Teleporter Filter
Temat rozp. Adminek AMXX.PL, 10.07.2016 01:50
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych