Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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] Be The Skeleton!


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

Napisano 30.10.2013 19:02

<!-- BEGIN TEMPLATE: postbit_external -->
<div>Changes your player model (sniper) into a skeleton from Scream Fortress 2013.<br /><br />By default, anyone can say <b>!skeleton </b>to toggle it on themselves. Admins can do !skeleton [target] [1/0] to toggle it on others.<br /><br /><br /><font size="5"><b>OVERRIDES</b></font><br />Use tf/addons/sourcemod/configs/<b>admin_overrides.cfg</b> and set these to your preferred donator flag to limit access to BtS to your donators/admins:<br /><ul><li>&quot;betheskeleton&quot; (def. all) Who can toggle it on themselves.</li>
<li>&quot;betheskeleton_admin&quot; (def. kick) Who can toggle it on other players.</li>
</ul><font size="5"><b>CV<font size="5">ARS<br /></font></b><font size="5"><font size="2"><font size="2">Tune the plugin to your liking<font size="2"> with tf/cfg/<b>server.cfg</b>.</font></font></font></font></font><ul><li><b>sm_betheroskeleton_default</b> (1/0, def. 0) Should everyone who joins get a skeleton model by default?</li>
<li><b>sm_bethero</b><b><b>skeleton</b>_taunts</b> (1/0, def. 1) Should skeletons be able to taunt?</li>
<li><b>sm_bethero</b><b><b>skeleton</b>_cooldown</b> (def. 2.0) Players must wait this long, in seconds, between toggling robot on themselves. Set to 0.0 for no cooldown.</li>
<li><b>sm_bethero</b><b><b>skeleton</b>_wearables</b> (1/0, def. 1) Show wearables on skeletons? Many wearables don't merge with the robot model properly, and thus create long lines going to the map's origin.</li>
<li><b>sm_bethero</b><b><b>skeleton</b>_wearables_kill</b> (1/0, def. 0) If this is 1, and _wearables is 0, wearables will be outright removed from players when they become robots. This makes it so they'll also have no wearables when they un-skeleton, but on the other hand, BLU zombie players appear RED if this isn't on.</li>
</ul> <br /><b><font size="5">FOR DEVELOPERS</font></b><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>betherobot.inc</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;">Get betherobot.inc below, <font face="Courier New">#include &lt;betherobot&gt;</font>, win the Internet.<br /><!-- BEGIN TEMPLATE: bbcode_php_printable -->
<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">enum&nbsp;SkeletonStatus&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SkeletonStatus_Human&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #FF8000">//&nbsp;Client&nbsp;is&nbsp;human<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SkeletonStatus_WantsToBeSkeleton</span><span style="color: #007700">,&nbsp;</span><span style="color: #FF8000">//&nbsp;Client&nbsp;wants&nbsp;to&nbsp;be&nbsp;robot,&nbsp;but&nbsp;can't&nbsp;because&nbsp;of&nbsp;defined&nbsp;rules.<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SkeletonStatus_Skeleton&nbsp;</span><span style="color: #FF8000">//&nbsp;Client&nbsp;is&nbsp;a&nbsp;robot.&nbsp;Beep&nbsp;boop.<br /></span><span style="color: #007700">}<br /><br /></span><span style="color: #FF8000">/**<br />&nbsp;*&nbsp;Checks&nbsp;if&nbsp;a&nbsp;client&nbsp;is&nbsp;a&nbsp;robot.<br />&nbsp;*<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Index&nbsp;of&nbsp;the&nbsp;client&nbsp;to&nbsp;check.<br />&nbsp;*&nbsp;@return&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SkeletonStatus&nbsp;value&nbsp;of&nbsp;the&nbsp;client;&nbsp;SkeletonStatus_Human&nbsp;if&nbsp;they're&nbsp;a&nbsp;human,&nbsp;SkeletonStatus_Skeleton&nbsp;if&nbsp;they're&nbsp;a&nbsp;robot,&nbsp;SkeletonStatus_WantsToBeSkeleton&nbsp;if&nbsp;they&nbsp;want&nbsp;to&nbsp;be&nbsp;a&nbsp;robot,&nbsp;but&nbsp;can't&nbsp;for&nbsp;some&nbsp;reason.<br />&nbsp;*/<br /></span><span style="color: #0000BB">native&nbsp;SkeletonStatus</span><span style="color: #007700">:</span><span style="color: #0000BB">BeTheSkeleton_GetSkeletonStatus</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/**<br />&nbsp;*&nbsp;Sets&nbsp;if&nbsp;a&nbsp;client&nbsp;should&nbsp;be&nbsp;robot&nbsp;or&nbsp;not.<br />&nbsp;*<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Index&nbsp;of&nbsp;the&nbsp;client&nbsp;to&nbsp;set.<br />&nbsp;*&nbsp;@param&nbsp;toggle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;True&nbsp;to&nbsp;make&nbsp;the&nbsp;client&nbsp;a&nbsp;robot,&nbsp;false&nbsp;to&nbsp;change&nbsp;them&nbsp;back&nbsp;to&nbsp;a&nbsp;human.&nbsp;Skip&nbsp;this&nbsp;argument&nbsp;to&nbsp;toggle&nbsp;instead.<br />&nbsp;*&nbsp;@noreturn<br />&nbsp;*/<br /></span><span style="color: #0000BB">native&nbsp;BeTheSkeleton_SetSkeleton</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">bool</span><span style="color: #007700">:</span><span style="color: #0000BB">toggle&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">bool</span><span style="color: #007700">:</span><span style="color: #0000BB">2</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/**<br />&nbsp;*&nbsp;Uses&nbsp;Be&nbsp;the&nbsp;Skeleton's&nbsp;"CheckTheRules()"&nbsp;native&nbsp;to&nbsp;check&nbsp;if&nbsp;a&nbsp;client&nbsp;should&nbsp;be&nbsp;allowed&nbsp;to&nbsp;be&nbsp;a&nbsp;robot&nbsp;or&nbsp;not.<br />&nbsp;*<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Index&nbsp;of&nbsp;the&nbsp;client&nbsp;to&nbsp;check.<br />&nbsp;*&nbsp;@return&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;True&nbsp;if&nbsp;the&nbsp;client&nbsp;is&nbsp;allowed&nbsp;to&nbsp;be&nbsp;a&nbsp;robot&nbsp;(not&nbsp;dead,&nbsp;allowed&nbsp;class&nbsp;by&nbsp;server,&nbsp;etc.)&nbsp;false&nbsp;otherwise.<br />&nbsp;*/<br /></span><span style="color: #0000BB">native&nbsp;bool</span><span style="color: #007700">:</span><span style="color: #0000BB">BeTheSkeleton_CheckRules</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">);&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --></div>
</div>
</div><br /><br />*Most the code is taken from Be The Robot, just modified to the skeleton model.</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=127298"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1383156150">Get Source</a> (betheskeleton.sp - 8.9 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/inc.gif" alt="File Type: inc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...38;d=1383156152">betheskeleton.inc</a> (1.8 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<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...38;d=1383160532">betheskeleton.smx</a> (10.3 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