<!-- 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 "CreateEntityByName" function or support the "trigger_multiple" 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 "z" 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 </span><span style="color: #FF8000">// Displays a menu with options to edit and position triggers.
<br /></span><span style="color: #0000BB">sm_trigger_add </span><span style="color: #FF8000">// Add a command to the currently selected trigger. Usage: sm_trigger_add <command>
<br /></span><span style="color: #0000BB">sm_trigger_flags </span><span style="color: #FF8000">// Usage: sm_trigger_flags <flags>. Displays the bit sum flags (from data config), eg: sm_trigger_flags 13107720
<br /></span><span style="color: #0000BB">sm_trigger_reload </span><span style="color: #FF8000">// Resets the plugin, removing all triggers and reloading the maps data config.
<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">// 0=Plugin off, 1=Plugin on.
<br /></span><span style="color: #0000BB">sm_trigger_allow </span><span style="color: #DD0000">"1"
<br />
<br /></span><span style="color: #FF8000">// Color of the laser box when displaying the trigger. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
<br /></span><span style="color: #0000BB">sm_trigger_color </span><span style="color: #DD0000">"255 0 0"
<br />
<br /></span><span style="color: #FF8000">// Used for the laser beam to display Trigger Boxes.
<br /></span><span style="color: #0000BB">sm_trigger_mat_beam </span><span style="color: #DD0000">"materials/sprites/laserbeam.vmt"
<br />
<br /></span><span style="color: #FF8000">// Used for the laser beam to display Trigger Boxes.
<br /></span><span style="color: #0000BB">sm_trigger_mat_halo </span><span style="color: #DD0000">"materials/sprites/halo01.vmt"
<br />
<br /></span><span style="color: #FF8000">// The model to use for the bounding box, the larger the better, will be invisible and is used as the maximum size for a trigger box.
<br /></span><span style="color: #0000BB">sm_trigger_model </span><span style="color: #DD0000">"models/props/cs_militia/silo_01.mdl"
<br />
<br /></span><span style="color: #FF8000">// How does the Activate Chance affect the Refire Count when the chance fails to activate? 0=Do not add to the Refire Count. 1=Add to the Refire Count on Chance fail.
<br /></span><span style="color: #0000BB">sm_trigger_refire </span><span style="color: #DD0000">"0"
<br />
<br /></span><span style="color: #FF8000">// Trigger Multiple Commands plugin version.
<br /></span><span style="color: #0000BB">sm_trigger_version
<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 "Hello World"</font> // 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> // This will work fine with the plugin for a single command.<br /><font color="Red">sm_trigger_add</font> <font color="Blue">"say Hello World"</font> // 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 "Hello world"; sm_cvar sv_alltalk '1'</font><br /><font color="Red">sm_trigger_add</font> <font color="Blue">say "Hello world"; sm_cvar sv_alltalk "0"</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 /> - 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 "<b>Get Plugin</b>" 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ł
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

[ANY] Trigger Multiple Commands (1.0) [20-Aug-2013]
Temat rozp. Adminek AMXX.PL, 20.08.2013 16:18
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych