<!-- BEGIN TEMPLATE: postbit_external -->
<div><font face="Comic Sans MS"><font size="3"><img src="http://i.imgur.com/BvXmiAo.png" border="0" alt="" /><br /><br /><img src="http://i.imgur.com/b23EwML.jpg" border="0" alt="" /><img src="http://i.imgur.com/HyZ5Kkd.jpg" border="0" alt="" /><img src="http://i.imgur.com/dY8Hzzq.jpg" border="0" alt="" /><br /><br /><img src="http://i.imgur.com/keHpVuC.png" border="0" alt="" /><br /><br /><iframe width="420" height="315" src="https://www.youtube.com/embed/lYtPQvdDMbs?rel=0" frameborder="0" allowfullscreen></iframe><br /><br />This plugin adds a <b><font color="#0080FF">Shop menu</font></b> in the game, which can be accessed by using the chat command "/shop".<br />The shop containts the following items (by default):<br /><br /><b><font color="#FF0000"><a></font> +50 Health <font color="#008000">[1000$]</font></b> -- Gives you +50 health points<br /><b><font color="#FF0000"><b></font> +100 Armor <font color="#008000">[1000$]</font></b> -- Gives you +100 armor points<br /><b><font color="#FF0000"><c></font> Unlimited Clip <font color="#008000">[3000$]</font></b> -- Makes your current weapon have unlimited bullets (without reloading). This item can only be activated on a weapon that actually uses bullets, reloading will remove the unlimited clip<br /><b><font color="#FF0000"><d></font> Unlimited Ammo <font color="#008000">[200$]</font></b> -- Adds unlimited backpack ammo to your current weapon<br /><b><font color="#FF0000"><e></font> All Grenades <font color="#008000">[800$]</font></b> -- Gives you HE Grenade, 2x Flashbang and a Smoke Grenade<br /><b><font color="#FF0000"><f></font> Bomber <font color="#008000">[1600$]</font></b> -- Gives you 20 HE Grenades<br /><b><font color="#FF0000"><g></font> Silent Footsteps <font color="#008000">[3000$]</font></b> -- You won't make noise when running<br /><b><font color="#FF0000"><h></font> Faster Speed <font color="#008000">[4300$]</font></b> -- Makes you run faster<br /><b><font color="#FF0000"><i></font> Low Gravity <font color="#008000">[2800$]</font></b> -- Allows you to jump higher<br /><b><font color="#FF0000"><j></font> Chameleon <font color="#008000">[9000$]</font></b> -- Use this item to fool your enemies by disguising as them<br /><b><font color="#FF0000"><k></font> Drugs (Speed + Health) <font color="#008000">[8000$]</font></b> -- Distorts your screen, makes you run faster and gives you additional health. The distortion is lost when zooming in<br /><b><font color="#FF0000"><l></font> Transparency <font color="#008000">[2500$]</font></b> -- Makes you transparent<br /><b><font color="#FF0000"><m></font> Invisibility (15 Seconds) <font color="#008000">[16000$]</font></b> -- Buying this will make you fully invisible for 15 seconds<br /><b><font color="#FF0000"><n></font> Double Damage <font color="#008000">[10000$]</font></b> -- Doubles the damage you make on an enemy player<br /><b><font color="#FF0000"><o></font> GodMode (5 Seconds) <font color="#008000">[16000$]</font></b> -- Become immortal for 5 seconds<br /><b><font color="#FF0000"><p></font> Health Regeneration <font color="#008000">[1800$]</font></b> -- Regenerates 1 health point each half of a second<br /><b><font color="#FF0000"><q></font> Armor Regeneration <font color="#008000">[2000$]</font></b> -- Regenerates 10 armor points each half of a second<br /><br /><img src="http://i.imgur.com/XqzxUsa.png" border="0" alt="" /><br /><br />Every single item can be disabled and modified by using various cvars.<br />To disable any item, you can use the cvar <b>"customshop_disableditems"</b>, add the item's letter in the cvar string to disable it.<br /><br /><b>Use these cvars to control the main options of the Shop:</b><br /><br />* <b>customshop_disableditems <font color="#FF0000"><any available item letter (case sensitive)></font></b> -- Leave it empty if you want all items to be enabled<br />* <b>customshop_viponly <font color="#FF0000"><<font color="#008000">default:</font> 0></font></b> -- Set to "1" if you want the Shop to be available only for players with a certain flag, you can change the flag by editing <b><font color="#0080FF">SHOP_ACCESS</font></b><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">#define SHOP_ACCESS ADMIN_RESERVATION
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b>You can change any item's prize by using the following cvars:</b><br /><br /><b><font color="#FF0000"><a></font> customshop_health_prize <font color="#FF0000"><<font color="#008000">default:</font> 1500></font><br /><font color="#FF0000"><b></font> customshop_armor_prize <font color="#FF0000"><<font color="#008000">default:</font> 1000></font><br /><font color="#FF0000"><c></font> customshop_unlclip_prize <font color="#FF0000"><<font color="#008000">default:</font> 3000></font><br /><font color="#FF0000"><d></font> customshop_unlammo_prize <font color="#FF0000"><<font color="#008000">default:</font> 200></font><br /><font color="#FF0000"><e></font> customshop_allgrenades_prize <font color="#FF0000"><<font color="#008000">default:</font> 800></font><br /><font color="#FF0000"><f></font> customshop_bomber_prize <font color="#FF0000"><<font color="#008000">default:</font> 1600></font><br /><font color="#FF0000"><g></font> customshop_silentsteps_prize <font color="#FF0000"><<font color="#008000">default:</font> 3000></font><br /><font color="#FF0000"><h></font> customshop_fasterspeed_prize <font color="#FF0000"><<font color="#008000">default:</font> 4300></font><br /><font color="#FF0000"><i></font> customshop_lowgravity_prize <font color="#FF0000"><<font color="#008000">default:</font> 2800></font><br /><font color="#FF0000"><j></font> customshop_chameleon_prize <font color="#FF0000"><<font color="#008000">default:</font> 9000></font><br /><font color="#FF0000"><k></font> customshop_drugs_prize <font color="#FF0000"><<font color="#008000">default:</font> 8000></font><br /><font color="#FF0000"><l></font> customshop_transparency_prize <font color="#FF0000"><<font color="#008000">default:</font> 2500></font><br /><font color="#FF0000"><m></font> customshop_invisibility_prize <font color="#FF0000"><<font color="#008000">default:</font> 16000></font><br /><font color="#FF0000"><n></font> customshop_doubledamage_prize <font color="#FF0000"><<font color="#008000">default:</font> 10000></font><br /><font color="#FF0000"><o></font> customshop_godmode_prize <font color="#FF0000"><<font color="#008000">default:</font> 16000></font><br /><font color="#FF0000"><p></font> customshop_healthregen_prize <font color="#FF0000"><<font color="#008000">default:</font> 1800></font><br /><font color="#FF0000"><q></font> customshop_armorregen_prize <font color="#FF0000"><<font color="#008000">default:</font> 2000></font></b><br /><br /><b>Other item cvars:</b><br /><br /><b><font color="#FF0000"><a></font> customshop_health_ammount <font color="#FF0000"><<font color="#008000">default:</font> 50></font></b> -- Controls the health points you get when buying item "a"<br /><b><font color="#FF0000"><b></font> customshop_armor_ammount <font color="#FF0000"><<font color="#008000">default:</font> 100></font></b> -- Controls the armor points you get when buying item "b"<br /><b><font color="#FF0000"><f></font> customshop_bomber_ammount <font color="#FF0000"><<font color="#008000">default:</font> 20></font></b> -- Controls how many HE Grenades you get when buying item "f"<br /><b><font color="#FF0000"><h></font> customshop_fasterspeed_ammount <font color="#FF0000"><<font color="#008000">default:</font> 300.0></font></b> -- Controls the speed boost you get when buying item "h"<br /><b><font color="#FF0000"><i></font> customshop_lowgravity_ammount <font color="#FF0000"><<font color="#008000">default:</font> 0.5></font></b> -- Controls the gravity you get when buying item "i". Be aware that the lower the gravity is, the higher you jump<br /><b><font color="#FF0000"><k></font> customshop_drugs_speedammount <font color="#FF0000"><<font color="#008000">default:</font> 300.0></font></b> -- Controls the speed boost you get when buying item "k"<br /><b><font color="#FF0000"><k></font> customshop_drugs_healthammount <font color="#FF0000"><<font color="#008000">default:</font> 200></font></b> -- Controls the health points you get when buying item "k"<br /><b><font color="#FF0000"><l></font> customshop_transparency_ammount <font color="#FF0000"><<font color="#008000">default:</font> 75></font></b> -- Controls the transparency ammount when buying item "l". Use a number from 0 to 255, the lower the number, the more transparency you get<br /><b><font color="#FF0000"><m></font> customshop_invisibility_time <font color="#FF0000"><<font color="#008000">default:</font> 15.0></font></b> -- Controls how many seconds you're invisible when buying item "m"<br /><b><font color="#FF0000"><o></font> customshop_godmode_time <font color="#FF0000"><<font color="#008000">default:</font> 5.0></font></b> -- Controls how many seconds you're immortal when buying item "o"<br /><b><font color="#FF0000"><p></font> customshop_healthregen_ammount <font color="#FF0000"><<font color="#008000">default:</font> 1></font></b> -- Controls how many health points you get every second when buying item "p"<br /><b><font color="#FF0000"><p></font> customshop_healthregen_time <font color="#FF0000"><<font color="#008000">default:</font> 0.5></font></b> -- Controls the speed of regeneration when buying item "p"<br /><b><font color="#FF0000"><p></font> customshop_healthregen_max <font color="#FF0000"><<font color="#008000">default:</font> 150></font></b> -- Controls the maximum ammount of regenerated health when buying item "p"<br /><b><font color="#FF0000"><q></font> customshop_armorregen_ammount <font color="#FF0000"><<font color="#008000">default:</font> 10></font></b> -- Controls how many armor points you get every second when buying item "p"<br /><b><font color="#FF0000"><q></font> customshop_armorregen_time <font color="#FF0000"><<font color="#008000">default:</font> 0.5></font></b> -- Controls the speed of regeneration when buying item "p"<br /><b><font color="#FF0000"><q></font> customshop_armorregen_max <font color="#FF0000"><<font color="#008000">default:</font> 150></font></b> -- Controls the maximum ammount of regenerated armor when buying item "p"<br /><br />Custom sound can also be applied to any item. Check <b><font color="#0080FF">g_itemSounds</font></b>.<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: #007700">new const </span><span style="color: #0000BB">g_itemSounds</span><span style="color: #007700">[][] = {<br /> </span><span style="color: #DD0000">"items/smallmedkit1.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "a": +50 Health [1000$]<br /> </span><span style="color: #DD0000">"items/ammopickup2.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "b": +50 Armor [1000$]<br /> </span><span style="color: #DD0000">"items/gunpickup2.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "c": Unlimited Clip [3000$]<br /> </span><span style="color: #DD0000">"items/gunpickup2.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "d": Unlimited Ammo [200$]<br /> </span><span style="color: #DD0000">"items/gunpickup2.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "e": All Grenades [800$]<br /> </span><span style="color: #DD0000">"x/x_pain2.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "f": Bomber [1600$]<br /> </span><span style="color: #DD0000">"items/gunpickup2.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "g": Silent Footsteps [3000$]<br /> </span><span style="color: #DD0000">"misc/bipbip.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "h": Faster Speed [4300$]<br /> </span><span style="color: #DD0000">"items/gunpickup2.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "i": Low Gravity [2800$]<br /> </span><span style="color: #DD0000">"items/gunpickup2.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "j": Chameleon [9000$]<br /> </span><span style="color: #DD0000">"items/gunpickup2.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "k": Drugs (Speed + Health) [8000$]<br /> </span><span style="color: #DD0000">"items/gunpickup2.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "l": Transparency [2500$]<br /> </span><span style="color: #DD0000">"hornet/ag_buzz1.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "m": Invisibility (15 Seconds) [16000$]<br /> </span><span style="color: #DD0000">"items/gunpickup2.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "n": Double Damage [10000$]<br /> </span><span style="color: #DD0000">"misc/stinger12.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "o": GodMode (5 Seconds) [16000$]<br /> </span><span style="color: #DD0000">"items/suitchargeok1.wav"</span><span style="color: #007700">, </span><span style="color: #FF8000">// Item "p": Health Regeneration [1800$]<br /> </span><span style="color: #DD0000">"items/suitchargeok1.wav" </span><span style="color: #FF8000">// Item "q": Armor Regeneration [2000$]<br /></span><span style="color: #007700">}
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><img src="http://i.imgur.com/md1xSAb.png" border="0" alt="" /><br /><br />* Move <b>custom_shop.amxx</b> in <b>addons/plugins</b><br />* Move <b>custom_shop.txt</b> in <b>addons/data/lang</b><br />* Move all the <b>sound files</b> in <b>sound/misc</b><br /><br /><img src="http://i.imgur.com/3A3S52K.png" border="0" alt="" /><br /><br />The plugin has <b><font color="#0080FF">multilingual support</font></b>. You can help with the translations <a href="https://forums.alliedmods.net/showthread.php?t=245317" target="_blank">here</a>. Any help would be appreciated.</font></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/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...38;d=1406828670">OciXCrom's Custom Shop.zip</a> (45.7 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sma.gif" alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.amxmodx.o...?file_id=136443"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1406828670">Get Source</a> (custom_shop.sma - 38.8 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
OciXCrom's Custom Shop v1.0
Temat rozp. Adminek AMXX.PL, 31.07.2014 18:00
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych