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

[L4D & L4D2] Gun Cabinet [08-Aug-2013]


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

Napisano 08.08.2013 13:08

<!-- BEGIN TEMPLATE: postbit_external -->
<div><div align="center"><img src="http://imageshack.us...3/6705/jbu1.jpg" border="0" alt="" /></div><br /><br /><u><font size="3"><b>Related Plugins:</b></font></u><ul><li><a href="http://forums.alliedmods.net/showthread.php?t=221111" target="_blank">[L4D &amp; L4D2] Ammo Pile Spawner</a></li>
<li><a href="http://forums.allied...ad.php?t=222931" target="_blank">[L4D &amp; L4D2] Gun Cabinet</a></li>
<li><a href="http://forums.allied...ad.php?t=222932" target="_blank">[L4D &amp; L4D2] Weapon Crate</a></li>
<li><a href="http://forums.allied...ad.php?t=222934" target="_blank">[L4D &amp; L4D2] Weapon Spawn</a></li>
</ul><br /><br /><u><font size="3"><b>About<b></b>:</b></font></u><ul><li>The locker and crate models are non-solid, the weapons will not collide with them and can fall freely.</li>
<li>This plugin comes with a data config (<font color="Green">l4d_gun_cabinet_presets</font>) and lists 7 presets you can customise to select which weapons spawn.</li>
<li>The presets config is required for the plugin to work. View the config for information on the settings and different weapons/items you can spawn.</li>
<li>To enable CSS weapons you must have the <a href="http://forums.allied...d.php?p=1041458" target="_blank">Weapon Unlock plugin</a>, and set the cvar <font color="Blue">&quot;l4d_gun_cabinet_css&quot;</font> to &quot;1&quot;.</li>
</ul><ul><li>The entity is not fully solid, so to delete or adjust origin/angles you must either look at the side, top or center above the middle.</li>
<li>These solid points will not move when you change the origin/angles, neither will the weapons.</li>
<li>You can use the commmand <font color="Red">sm_gun_cabinet_reload</font> to reset the plugin, this will remove and reload all cabinets so for example if you changed the origin/angles and saved the data. Otherwise the weapons and solid box will not be aligned.</li>
</ul><br /><br /><u><font size="3"><b>Thanks:</b></font></u><ul><li>disawar1 - Helped with code fixes.</li>
<li>Herbie</li>
<li>worminater</li>
<li>Sev</li>
</ul><br /><br /><br /><u><font size="3"><b>Admin Commands:</b> (requires &quot;z&quot; flag)</font></u><br /><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">sm_gun_cabinet&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Opens&nbsp;a&nbsp;menu&nbsp;to&nbsp;spawn&nbsp;and&nbsp;save&nbsp;a&nbsp;Gun&nbsp;Cabinet&nbsp;to&nbsp;the&nbsp;data&nbsp;config&nbsp;for&nbsp;auto&nbsp;spawning.<br /></span><span style="color: #0000BB">sm_gun_cabinet_del&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Removes&nbsp;the&nbsp;Gun&nbsp;Cabinet&nbsp;you&nbsp;are&nbsp;pointing&nbsp;at&nbsp;and&nbsp;deletes&nbsp;from&nbsp;the&nbsp;config.<br /></span><span style="color: #0000BB">sm_gun_cabinet_clear&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Removes&nbsp;all&nbsp;Gun&nbsp;Cabinets&nbsp;from&nbsp;the&nbsp;current&nbsp;map.<br /></span><span style="color: #0000BB">sm_gun_cabinet_wipe&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Removes&nbsp;all&nbsp;Gun&nbsp;Cabinets&nbsp;from&nbsp;the&nbsp;current&nbsp;map&nbsp;and&nbsp;deletes&nbsp;them&nbsp;from&nbsp;the&nbsp;config.<br /></span><span style="color: #0000BB">sm_gun_cabinet_glow&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Toggle&nbsp;to&nbsp;enable&nbsp;glow&nbsp;on&nbsp;all&nbsp;Gun&nbsp;Cabinets&nbsp;to&nbsp;see&nbsp;where&nbsp;they&nbsp;are&nbsp;placed.<br /></span><span style="color: #0000BB">sm_gun_cabinet_list&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Display&nbsp;a&nbsp;list&nbsp;of&nbsp;Gun&nbsp;Cabinet&nbsp;positions&nbsp;and&nbsp;the&nbsp;total&nbsp;number&nbsp;of.<br /></span><span style="color: #0000BB">sm_gun_cabinet_reload&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Reloads&nbsp;the&nbsp;plugin,&nbsp;reads&nbsp;the&nbsp;preset&nbsp;data&nbsp;config&nbsp;and&nbsp;spawns&nbsp;any&nbsp;save&nbsp;Gun&nbsp;Cabinets.<br /></span><span style="color: #0000BB">sm_gun_cabinet_tele&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Teleport&nbsp;to&nbsp;a&nbsp;Gun&nbsp;Cabinet&nbsp;(Usage:&nbsp;sm_gun_cabinet_tele&nbsp;&lt;index:&nbsp;1&nbsp;to&nbsp;MAX_SPAWNS&nbsp;(5)&gt;).<br /></span><span style="color: #0000BB">sm_gun_cabinet_ang&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Displays&nbsp;a&nbsp;menu&nbsp;to&nbsp;adjust&nbsp;the&nbsp;Gun&nbsp;Cabinet&nbsp;angles&nbsp;your&nbsp;crosshair&nbsp;is&nbsp;over.<br /></span><span style="color: #0000BB">sm_gun_cabinet_pos&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Displays&nbsp;a&nbsp;menu&nbsp;to&nbsp;adjust&nbsp;the&nbsp;Gun&nbsp;Cabinet&nbsp;origin&nbsp;your&nbsp;crosshair&nbsp;is&nbsp;over.&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><br /><br /><u><font size="3"><b>Cvars:</b></font></u><br /><br />Saved to <font color="Green">l4d_gun_cabinet.cfg</font> in your servers <font color="Green">cfgsourcemod</font> folder.<br /><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"></span><span style="color: #FF8000">//&nbsp;0=Plugin&nbsp;off,&nbsp;1=Plugin&nbsp;on.<br /></span><span style="color: #0000BB">l4d_gun_cabinet_allow&nbsp;</span><span style="color: #DD0000">"1"<br /><br /></span><span style="color: #FF8000">//&nbsp;0=Off,&nbsp;1=Allow&nbsp;spawning&nbsp;CSS&nbsp;weapons&nbsp;when&nbsp;using&nbsp;the&nbsp;'random'&nbsp;value&nbsp;in&nbsp;the&nbsp;preset&nbsp;config.<br /></span><span style="color: #0000BB">l4d_gun_cabinet_css&nbsp;</span><span style="color: #DD0000">"0"<br /><br /></span><span style="color: #FF8000">//&nbsp;0=Off,&nbsp;Sets&nbsp;the&nbsp;max&nbsp;range&nbsp;at&nbsp;which&nbsp;the&nbsp;cabinet&nbsp;glows.<br /></span><span style="color: #0000BB">l4d_gun_cabinet_glow&nbsp;</span><span style="color: #DD0000">"0"<br /><br /></span><span style="color: #FF8000">//&nbsp;0=Default&nbsp;glow&nbsp;color.&nbsp;Three&nbsp;values&nbsp;between&nbsp;0-255&nbsp;separated&nbsp;by&nbsp;spaces.&nbsp;RGB:&nbsp;Red&nbsp;Green&nbsp;Blue.<br /></span><span style="color: #0000BB">l4d_gun_cabinet_glow_color&nbsp;</span><span style="color: #DD0000">"255&nbsp;0&nbsp;0"<br /><br /></span><span style="color: #FF8000">//&nbsp;Turn&nbsp;on&nbsp;the&nbsp;plugin&nbsp;in&nbsp;these&nbsp;game&nbsp;modes,&nbsp;separate&nbsp;by&nbsp;commas&nbsp;(no&nbsp;spaces).&nbsp;(Empty&nbsp;=&nbsp;all).<br /></span><span style="color: #0000BB">l4d_gun_cabinet_modes&nbsp;</span><span style="color: #DD0000">""<br /><br /></span><span style="color: #FF8000">//&nbsp;Turn&nbsp;off&nbsp;the&nbsp;plugin&nbsp;in&nbsp;these&nbsp;game&nbsp;modes,&nbsp;separate&nbsp;by&nbsp;commas&nbsp;(no&nbsp;spaces).&nbsp;(Empty&nbsp;=&nbsp;none).<br /></span><span style="color: #0000BB">l4d_gun_cabinet_modes_off&nbsp;</span><span style="color: #DD0000">""<br /><br /></span><span style="color: #FF8000">//&nbsp;Turn&nbsp;on&nbsp;the&nbsp;plugin&nbsp;in&nbsp;these&nbsp;game&nbsp;modes.&nbsp;0=All,&nbsp;1=Coop,&nbsp;2=Survival,&nbsp;4=Versus,&nbsp;8=Scavenge.&nbsp;Add&nbsp;numbers&nbsp;together.<br /></span><span style="color: #0000BB">l4d_gun_cabinet_modes_tog&nbsp;</span><span style="color: #DD0000">"0"<br /><br /></span><span style="color: #FF8000">//&nbsp;Maximum&nbsp;number&nbsp;of&nbsp;primary&nbsp;weapons&nbsp;to&nbsp;spawn&nbsp;(max&nbsp;is&nbsp;10).<br /></span><span style="color: #0000BB">l4d_gun_cabinet_max_gun&nbsp;</span><span style="color: #DD0000">"8"<br /><br /></span><span style="color: #FF8000">//&nbsp;Maximum&nbsp;number&nbsp;of&nbsp;pistols&nbsp;to&nbsp;spawn&nbsp;(max&nbsp;is&nbsp;4).<br /></span><span style="color: #0000BB">l4d_gun_cabinet_max_pistol&nbsp;</span><span style="color: #DD0000">"2"<br /><br /></span><span style="color: #FF8000">//&nbsp;Maximum&nbsp;number&nbsp;of&nbsp;items&nbsp;to&nbsp;spawn&nbsp;(max&nbsp;is&nbsp;2).<br /></span><span style="color: #0000BB">l4d_gun_cabinet_max_item&nbsp;</span><span style="color: #DD0000">"1"<br /><br /></span><span style="color: #FF8000">//&nbsp;-1=All,&nbsp;0=None.&nbsp;Otherwise&nbsp;randomly&nbsp;select&nbsp;this&nbsp;many&nbsp;weapons&nbsp;to&nbsp;spawn&nbsp;from&nbsp;the&nbsp;maps&nbsp;config.<br /></span><span style="color: #0000BB">l4d_gun_cabinet_random&nbsp;</span><span style="color: #DD0000">"-1"<br /><br /></span><span style="color: #FF8000">//&nbsp;Weapon&nbsp;Spawn&nbsp;plugin&nbsp;version.<br /></span><span style="color: #0000BB">l4d_gun_cabinet_version&nbsp;
<br /></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><br /><br /><u><font size="3"><b>Changes:</b></font></u><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">1.0 (08-Aug-2012)<br />&nbsp; &nbsp; - Initial release.</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><u><font size="3"><b>Installation:</b></font></u><ul><li>Click &quot;<b>Get Plugin</b>&quot; and put the .smx file into your servers <font color="Green">addonssourcemodplugins</font> folder.</li>
<li>Download &quot;<b>l4d_gun_cabinet_presets.cfg</b>&quot; and put into your servers <font color="Green">addonssourcemoddata</font> folder.</li>
</ul></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=123921"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1375963718">Get Source</a> (l4d_gun_cabinet.sp - 60.3 KB)


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


<a href="https://forums.allie...38;d=1375963723">l4d_gun_cabinet_presets.cfg</a> (4.4 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