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

[ANY] Trigger Multiple Commands (1.0) [20-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:7 476
  • Lokalizacja:AMXX.PL
Offline

Napisano 20.08.2013 16:18

<!-- BEGIN TEMPLATE: postbit_external -->
<div><div align="center"><br /><img src="http://imageshack.us...8/1968/8cg9.jpg" border="0" alt="" /> <a href="http://imageshack.us/a/img580/6334/idqc.jpg" target="_blank"><img src="http://imageshack.us/a/img689/2254/2ypj.jpg" border="0" alt="" /></a><br /></div><br /><br /><br /><u><font size="3"><b>About<b></b>:</b></font></u><ul><li>Save up to 32 trigger boxes (trigger_multiple entities) which execute commands when activated by players walking into them.</li>
<li>Lots of options to choose from. View menu screenshot for details.</li>
<li>The data config is saved to <font color="Green">sm_trigger.cfg</font> in your servers <font color="Green">sourcemoddata</font> folder.</li>
</ul><br /><br /><u><font size="3"><b>Engine Support:</b></font></u><ul><li>This plugin should work for most game engines supported by SourceMod. But some may not have the &quot;CreateEntityByName&quot; function or support the &quot;trigger_multiple&quot; entity.</li>
<li>If the game engine you use does not support this plugin or needs some adjustments (for example team names and numbers), please let me know.</li>
<li>This plugin supports team names for: <b>L4D/L4D2/TF2/CSS/CSGO/DoD:S/HL2DM/INS/ZPS/AOC/DM/FF/GE:S/HID/NT/ND/SGTLS</b>.</li>
</ul><br /><br /><u><font size="3"><b>Thanks:</b></font></u><ul><li>gilmon - Tons of help testing.</li>
<li>Herbie - Lots of help testing.</li>
<li>wominater - Lots of help testing.</li>
<li>disawar1</li>
<li>Chatyak</li>
<li>Sev</li>
</ul><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_trigger&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Displays&nbsp;a&nbsp;menu&nbsp;with&nbsp;options&nbsp;to&nbsp;edit&nbsp;and&nbsp;position&nbsp;triggers.
<br /></span><span style="color: #0000BB">sm_trigger_add&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Add&nbsp;a&nbsp;command&nbsp;to&nbsp;the&nbsp;currently&nbsp;selected&nbsp;trigger.&nbsp;Usage:&nbsp;sm_trigger_add&nbsp;&lt;command&gt;
<br /></span><span style="color: #0000BB">sm_trigger_flags&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Usage:&nbsp;sm_trigger_flags&nbsp;&lt;flags&gt;.&nbsp;Displays&nbsp;the&nbsp;bit&nbsp;sum&nbsp;flags&nbsp;(from&nbsp;data&nbsp;config),&nbsp;eg:&nbsp;sm_trigger_flags&nbsp;13107720
<br /></span><span style="color: #0000BB">sm_trigger_reload&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Resets&nbsp;the&nbsp;plugin,&nbsp;removing&nbsp;all&nbsp;triggers&nbsp;and&nbsp;reloading&nbsp;the&nbsp;maps&nbsp;data&nbsp;config.&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><br /><u><font size="3"><b>CVars:</b></font></u><br /><br />Saved to <font color="Green">sm_trigger.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">sm_trigger_allow&nbsp;</span><span style="color: #DD0000">"1"
<br />
<br /></span><span style="color: #FF8000">//&nbsp;Color&nbsp;of&nbsp;the&nbsp;laser&nbsp;box&nbsp;when&nbsp;displaying&nbsp;the&nbsp;trigger.&nbsp;Three&nbsp;values&nbsp;between&nbsp;0-255&nbsp;separated&nbsp;by&nbsp;spaces.&nbsp;RGB&nbsp;Color255&nbsp;-&nbsp;Red&nbsp;Green&nbsp;Blue.
<br /></span><span style="color: #0000BB">sm_trigger_color&nbsp;</span><span style="color: #DD0000">"255&nbsp;0&nbsp;0"
<br />
<br /></span><span style="color: #FF8000">//&nbsp;Used&nbsp;for&nbsp;the&nbsp;laser&nbsp;beam&nbsp;to&nbsp;display&nbsp;Trigger&nbsp;Boxes.
<br /></span><span style="color: #0000BB">sm_trigger_mat_beam&nbsp;</span><span style="color: #DD0000">"materials/sprites/laserbeam.vmt"
<br />
<br /></span><span style="color: #FF8000">//&nbsp;Used&nbsp;for&nbsp;the&nbsp;laser&nbsp;beam&nbsp;to&nbsp;display&nbsp;Trigger&nbsp;Boxes.
<br /></span><span style="color: #0000BB">sm_trigger_mat_halo&nbsp;</span><span style="color: #DD0000">"materials/sprites/halo01.vmt"
<br />
<br /></span><span style="color: #FF8000">//&nbsp;The&nbsp;model&nbsp;to&nbsp;use&nbsp;for&nbsp;the&nbsp;bounding&nbsp;box,&nbsp;the&nbsp;larger&nbsp;the&nbsp;better,&nbsp;will&nbsp;be&nbsp;invisible&nbsp;and&nbsp;is&nbsp;used&nbsp;as&nbsp;the&nbsp;maximum&nbsp;size&nbsp;for&nbsp;a&nbsp;trigger&nbsp;box.
<br /></span><span style="color: #0000BB">sm_trigger_model&nbsp;</span><span style="color: #DD0000">"models/props/cs_militia/silo_01.mdl"
<br />
<br /></span><span style="color: #FF8000">//&nbsp;How&nbsp;does&nbsp;the&nbsp;Activate&nbsp;Chance&nbsp;affect&nbsp;the&nbsp;Refire&nbsp;Count&nbsp;when&nbsp;the&nbsp;chance&nbsp;fails&nbsp;to&nbsp;activate?&nbsp;0=Do&nbsp;not&nbsp;add&nbsp;to&nbsp;the&nbsp;Refire&nbsp;Count.&nbsp;1=Add&nbsp;to&nbsp;the&nbsp;Refire&nbsp;Count&nbsp;on&nbsp;Chance&nbsp;fail.
<br /></span><span style="color: #0000BB">sm_trigger_refire&nbsp;</span><span style="color: #DD0000">"0"
<br />
<br /></span><span style="color: #FF8000">//&nbsp;Trigger&nbsp;Multiple&nbsp;Commands&nbsp;plugin&nbsp;version.
<br /></span><span style="color: #0000BB">sm_trigger_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>How to use:</b></font></u><ul><li>Add a new trigger and command by using the <font color="Red">sm_trigger_add</font> command. See below for examples.</li>
<li>Follow the menu to setup the trigger. Once complete you can access the main menu using the <font color="Red">sm_trigger</font> command.</li>
<li>Edit more options in the main menu for example to set the trigger box size.</li>
<li>Command arguments can be added with single and/or double quotes.</li>
<li>Create some test triggers and you'll see it's quite easy to use.</li>
</ul><br /><br /><br /><u><font size="3"><b>Example commands:</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">// This will kill the player who walks into the box.<br /><font color="Red">sm_trigger_add</font> <font color="Blue">sm_slay @me</font><br /><br />// You can use single and double quotes within the string. All of these are valid:<br /><font color="Red">sm_trigger_add</font> <font color="Blue">say &quot;Hello World&quot;</font>&nbsp; // This is the best way since you can use more than 1 command.<br /><font color="Red">sm_trigger_add</font> <font color="Blue">say Hello World</font>&nbsp; &nbsp; // This will work fine with the plugin for a single command.<br /><font color="Red">sm_trigger_add</font> <font color="Blue">&quot;say Hello World&quot;</font>&nbsp; // This is bad.. The plugin will strip the first and last quote so best to avoid doing this.<br /><br />// Use the semicolon to split up and execute multiple commands.<br /><font color="Red">sm_trigger_add</font> <font color="Blue">say &quot;Hello world&quot;; sm_cvar sv_alltalk '1'</font><br /><font color="Red">sm_trigger_add</font> <font color="Blue">say &quot;Hello world&quot;; sm_cvar sv_alltalk &quot;0&quot;</font><br /><br />// You can make players/bots do things in-game with entities, for example pressing a button when they reach a certain area.<br />// Use <a href="https://forums.allie...ead.php?t=39439" target="_blank">Stripper:Source</a> to dump the map so you can find the targetname of what you want to activate.<br />// See Valve's <a href="https://developer.valvesoftware.com/wiki/Ent_fire" target="_blank">Developer Community wiki</a> for details on the Ent_Fire command.<br /><br />// Triggers the elevator door to open on Dead Center map (c1m1_hotel) in Left4Dead2.<br /><font color="Red">sm_trigger_add</font> <font color="Blue">Ent_Fire elevator_door_button1 press</font><br />// Triggers the roller coaster to start on Dark Carnival map (c2m3_coaster) in Left4Dead2.<br /><font color="Red">sm_trigger_add</font> <font color="Blue">Ent_Fire minifinale_button press</font></code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_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 (20-Aug-2012)<br />&nbsp; &nbsp; - Initial release.</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><br /><br /><u><font size="3"><b>Installation:</b></font></u><ol style="list-style-type: decimal"><li>Click &quot;<b>Get Plugin</b>&quot; and put the .smx file into your servers <font color="Green">addonssourcemodplugins</font> folder.</li>
</ol></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=124552"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1377011916">Get Source</a> (sm_trigger_multiple_commands.sp - 70.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