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

Knife Deathmatch Shop


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

Napisano 07.05.2015 07:52

<div>When I was learning how to write plugins for AMX Mod X, I've got this idea and wrote it. It wasn't so bad, but it used a huge amount of CPU &amp; RAM. Now I fixed it, re-coded and make its coding style better.<br />Its RAM &amp; CPU using is low now and you can use it in live servers.<br /><br />That's my second plugin and I hope that It will be accepted by you guys, because I did my best :)<br /><br />You can read detailed descriptions below:<br /><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">/**<br />&nbsp;* Knife Deathmatch Shop<br />&nbsp;* First time written for Pars-Strike servers (pars-strike.ir)<br />&nbsp;*<br />&nbsp;* First release: 26 March 2015<br />&nbsp;* This release: 7 May 2015<br />&nbsp;*<br />&nbsp;* This plugin is made for Knife servers (It won't be interesting for other servers)<br />&nbsp;* Players can buy things with their frags (That means money will be unuseful :D)<br />&nbsp;* Currently, This plugin supports these items:<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - Glow (Glow shell for players)<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - Extra HP<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - Speed (Fast moving)<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - Hook (Gives hook feature to player and they can do this with +hook, but you'll need Hook plugin for this)<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - GodMode<br />&nbsp;*<br />&nbsp;* Requirments:<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - Fun<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - Fakemeta<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - Hamsandwich<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - AMX Mod 1.8.3 Dev builds or higher (Read the compile note)<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - Hook plugin (needed for hook item) and amx_givehook &amp; amx_takehook working!<br />&nbsp;*<br />&nbsp;* Compile Note:<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; If you want use this plugin in AMX Mod 1.8.2 or lower, you have to compile the plugin yourself,<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; before compile, add this to plugin header:<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #include &lt;colorchat&gt;<br />&nbsp;*<br />&nbsp;* Credits:<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - xEhsaan (Idea &amp; Coding)<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - MohaMMadReZa (Coding advisor &amp; Testing)<br />&nbsp;*<br />&nbsp;* CVars:<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; * All prices are in frags count<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; * Times are in seconds<br />&nbsp;*<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - dmb_glow_price&nbsp; &amp; dmb_glow_time : Glow price &amp; expiration time<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - dmb_hp_price &amp; dmb_hp_value : HP price &amp; HP value (in HP units)<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - dmb_speed_price &amp; dmb_speed_time : Speed price &amp; Speed expiration time<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - dmb_godmode_price &amp; dmb_godmode_time : GodMode price &amp; expiration time<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - dmb_tag : String for prefix every messages in chat (Need restart to change)<br />&nbsp;*<br />&nbsp;* Console Commands:<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; * All commands need LEVEL_C access<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - amx_setfrags &lt;target&gt; &lt;frags&gt;<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set frags for a certain player or a team<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - amx_addfrags &lt;target&gt; &lt;frags&gt;<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Add frags to a certain player or a team frags<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; - amx_expire_bonus &lt;target&gt;<br />&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Expire bonus manually for a player or a team.<br />&nbsp;*<br />&nbsp;*<br />&nbsp;*/</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 &quot;Compile Note&quot; 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>After purchasing, it'll take 1 - 2 seconds to activate the item</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 Get Plugin link. Use <b><u>Get Source</u></b>.</i></div></div>


<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ł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych