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] Is Player In Spawn?


  • 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 10.09.2014 19:17

<!-- BEGIN TEMPLATE: postbit_external -->
<div>Basically, I have a TON of private plugins that all add commands which should only work if the command user is in their own spawn. I got tired of hooking the func_respawnrooms countless times, so I made this.<br /><br />The plugin provides one native: TF2_IsInSpawn(client) which returns either TRUE or FALSE.<br /><br />The plugin provides two forwards: TF2Spawn_EnterSpawn(client, spawn) and TF2Spawn_LeaveSpawn(client, spawn), which fire whenever a player enters or leaves a func_respawnroom.<br /><br />The plugin has two cvars.<ul><li><b>sm_isPlayerInSpawn_checknewents</b> with a default value of &quot;0&quot;. When enabled, the plugin will continuously check all new entities to see if they are spawnrooms. This is not needed for the vast majority of maps.</li>
<li><b>sm_isPlayerInSpawn_update</b> with a default value of &quot;2&quot;. The values have these effects:<ul><li>0 - Automatic updating through <a href="https://forums.allie...ad.php?t=169095" target="_blank">Updater</a> is disabled.</li>
<li>1 - Updater will print a message to its log file when an update is available.</li>
<li>2 - When an update is available, Updater will download the update. The updated version will be loaded on next server boot or map change.</li>
<li>3 - When an update is available, Updater will download the update and immediately start it.</li>
</ul></li>
</ul><br />The plugin requires custom includes. As such, it does not compile here on the forums. Includes required to compile the plugin are:<ul><li><a href="http://ddhoward.bitb...ard_updater.inc" target="_blank">ddhoward_updater.inc</a></li>
<li><a href="http://ddhoward.bitb...ude/updater.inc" target="_blank">updater.inc</a> (<a href="https://forums.alliedmods.net/showthread.php?t=169095" target="_blank">source</a>)</li>
</ul><br />The Updater plugin does NOT need to be installed for this plugin to function.<br /><br /><br />I eventually plan on providing support for maps that may have overlapping func_respawnroom entities (which would therefore cause the forwards to fire when they shouldn't).<br /><br /><br /><br /><font size="1"><div align="center">If you like what you see here, please consider donating~<br /><a href="https://www.paypal.c...M.gif:NonHosted" target="_blank"><img src="http://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" alt="" /></a></div></font></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.../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=1410373387">isPlayerInSpawn.smx</a> (6.1 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- 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=137797"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1410373387">Get Source</a> (isPlayerInSpawn.sp - 3.4 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=1410373387">isPlayerInSpawn.inc</a> (1.1 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