<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">/**<br /> * Knife Deathmatch Shop<br /> * First time written for Pars-Strike servers (pars-strike.ir)<br /> *<br /> * First release: 26 March 2015<br /> * This release: 7 May 2015<br /> *<br /> * This plugin is made for Knife servers (It won't be interesting for other servers)<br /> * Players can buy things with their frags (That means money will be unuseful :D)<br /> * Currently, This plugin supports these items:<br /> * - Glow (Glow shell for players)<br /> * - Extra HP<br /> * - Speed (Fast moving)<br /> * - Hook (Gives hook feature to player and they can do this with +hook, but you'll need Hook plugin for this)<br /> * - GodMode<br /> *<br /> * Requirments:<br /> * - Fun<br /> * - Fakemeta<br /> * - Hamsandwich<br /> * - AMX Mod 1.8.3 Dev builds or higher (Read the compile note)<br /> * - Hook plugin (needed for hook item) and amx_givehook & amx_takehook working!<br /> *<br /> * Compile Note:<br /> * If you want use this plugin in AMX Mod 1.8.2 or lower, you have to compile the plugin yourself,<br /> * before compile, add this to plugin header:<br /> * #include <colorchat><br /> *<br /> * Credits:<br /> * - xEhsaan (Idea & Coding)<br /> * - MohaMMadReZa (Coding advisor & Testing)<br /> *<br /> * CVars:<br /> * * All prices are in frags count<br /> * * Times are in seconds<br /> *<br /> * - dmb_glow_price & dmb_glow_time : Glow price & expiration time<br /> * - dmb_hp_price & dmb_hp_value : HP price & HP value (in HP units)<br /> * - dmb_speed_price & dmb_speed_time : Speed price & Speed expiration time<br /> * - dmb_godmode_price & dmb_godmode_time : GodMode price & expiration time<br /> * - dmb_tag : String for prefix every messages in chat (Need restart to change)<br /> *<br /> * Console Commands:<br /> * * All commands need LEVEL_C access<br /> * - amx_setfrags <target> <frags><br /> * Set frags for a certain player or a team<br /> * - amx_addfrags <target> <frags><br /> * Add frags to a certain player or a team frags<br /> * - amx_expire_bonus <target><br /> * Expire bonus manually for a player or a team.<br /> *<br /> *<br /> */</code><hr />
</div><b>Attention: Don't use Get Plugin link, it won't be compiled correctly. You must compile it yourself, before compile, Read "Compile Note" section.</b><br /><br /><b>Known issues:</b><ul><li>Speed is different on AMX Mod X versions. You must change it yourself</li>
<li>
<li>Plugin will crash if you enter a negative value for HP Value</li>
<li>This isn't supporting ML (I'll fix this for next release, I don't have much time for this right now)</li>
</ul><br /><div align="center"><i>Once again, Compile it locally, don't use
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<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...47"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...1430981490">Get Source</a> (knife_dm_shop.sma - 22.5 KB)
</td>
</tr>
</table>
</fieldset>
</div>
Wyświetl pełny artykuł