<!-- BEGIN TEMPLATE: postbit_external -->
<div><font face="Century Gothic"><b><font size="7"><font color="#d48484">Knife API v1.0</font></font></b><br /><br />I noticed there's no such thing called Knife API in the alliedmods forums which made me wonder how is that even possible with the recent popularity of billions of custom knives, especially on Jailbreak servers.<br />This mod should turn the pain of adding knives to the server into a breeze. <br /><br /><b>Warning:</b> It is an API. It's a set of tools that <b>YOU </b>should use to add knives <b>BY YOURSELF</b>. If someone decides to make a cool knife using this I'll append it to the main post, but that's about it. <b>I won't make any knife for this mod on request.</b><br /><br />By default, you have hands (knuckles from jailbreak). If you dislike this, comment this line in the code:<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 DEFAULT_HANDS
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b><font size="5"><font color="#d48484">Controls</font></font></b><br />You can add up to 32 knives to the game and the player can have all of them at the same time. To switch between your knives as a player, press the <b>R key</b> or the key you have bound <b>+reload</b> on.<br /><br />You can drop any knife THAT IS DROPPABLE (i.e. you set it in register_knife) by pressing <b>G (drop)</b>. Default knife cannot be dropped.<br /><br /><b><font size="5"><font color="#d48484">Cvars</font></font></b><ul><li>knifeapi_dropondeath (1|0, default 1) - <i>Whether or not you should drop all of your DROPPABLE knives on death.</i></li>
<li>knifeapi_lossondeath (1|0, default 1) - <i>Whether or not you should lose ALL of your knives on death. You should keep this 1 even if you have knifeapi_dropondeath set to 1, otherwise the player will still have knives even after dropping them.</i></li>
</ul><br /><b><font size="5"><font color="#d48484">Natives</font></font></b><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">native register_knife</span><span style="color: #007700">( const </span><span style="color: #0000BB">v_model</span><span style="color: #007700">[ ] = </span><span style="color: #DD0000">""</span><span style="color: #007700">, const </span><span style="color: #0000BB">p_model</span><span style="color: #007700">[ ] = </span><span style="color: #DD0000">""</span><span style="color: #007700">, const </span><span style="color: #0000BB">w_model</span><span style="color: #007700">[ ] = </span><span style="color: #DD0000">""</span><span style="color: #007700">, const </span><span style="color: #0000BB">deploysound</span><span style="color: #007700">[ ] = </span><span style="color: #DD0000">""</span><span style="color: #007700">, const </span><span style="color: #0000BB">slashsound</span><span style="color: #007700">[ ] = </span><span style="color: #DD0000">""</span><span style="color: #007700">, const </span><span style="color: #0000BB">stabsound</span><span style="color: #007700">[ ] = </span><span style="color: #DD0000">""</span><span style="color: #007700">, const </span><span style="color: #0000BB">whiffsound</span><span style="color: #007700">[ ] = </span><span style="color: #DD0000">""</span><span style="color: #007700">, const </span><span style="color: #0000BB">wallsound</span><span style="color: #007700">[ ] = </span><span style="color: #DD0000">""</span><span style="color: #007700">, </span><span style="color: #0000BB">bool</span><span style="color: #007700">:</span><span style="color: #0000BB">bDroppable </span><span style="color: #007700">= </span><span style="color: #0000BB">false</span><span style="color: #007700">, </span><span style="color: #0000BB">Float</span><span style="color: #007700">: </span><span style="color: #0000BB">primarydamage</span><span style="color: #007700">, </span><span style="color: #0000BB">Float</span><span style="color: #007700">: </span><span style="color: #0000BB">secondarydamage</span><span style="color: #007700">, </span><span style="color: #0000BB">Float</span><span style="color: #007700">: </span><span style="color: #0000BB">primarydelay </span><span style="color: #007700">= </span><span style="color: #0000BB">0.0</span><span style="color: #007700">, </span><span style="color: #0000BB">Float</span><span style="color: #007700">: </span><span style="color: #0000BB">secondarydelay </span><span style="color: #007700">= </span><span style="color: #0000BB">0.0 </span><span style="color: #007700">)
<br /></span><span style="color: #FF8000">/*
<br />... That's a lot of arguments. They all should be self-explanatory, though. If you leave out any of the models empty, they won't be visible in-game (w_model will be replaced by w_backpack.mdl). This is good for the hands for example, p_model is not required so it's just left empty. If you leave any of the sounds empty, standard knife sounds will be used instead. The names may be confusing, but I found them better like this:
<br />Deploy sound - played on weapon deploy
<br />Slash sound - played on slash hit
<br />Stab sound - played on stab hit
<br />Whiff sound - played on slashing through the air
<br />Wall sound - played on hitting the wall
<br />
<br />bDroppable - if set to true, this knife will be droppable with the G button.
<br />Primary and secondary damage is self explanatory.
<br />Primary and secondary delay stand for the delay between attacks. If you leave this at 0.0, default knife delays will be used instead.
<br />Returns the knife identifier used for other natives and in forwards.
<br />*/
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><!-- 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">native give_knife</span><span style="color: #007700">( </span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #0000BB">iKnife </span><span style="color: #007700">)
<br /></span><span style="color: #FF8000">//Gives knife to a player. Self-explanatory arguments.
<br />//Returns 1 on success, -1 if the player already has the knife.
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><!-- 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">native get_knife</span><span style="color: #007700">( </span><span style="color: #0000BB">id </span><span style="color: #007700">)
<br /></span><span style="color: #FF8000">//Gets the currently equipped knife of a player.
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><!-- 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">native has_knife</span><span style="color: #007700">( </span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #0000BB">iKnife </span><span style="color: #007700">)
<br /></span><span style="color: #FF8000">//Returns 1 if player has knife, 0 if they don't. Self explanatory arguments.
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><!-- 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">native set_knife</span><span style="color: #007700">( </span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #0000BB">iKnife </span><span style="color: #007700">)
<br /></span><span style="color: #FF8000">//Sets player's currently equipped knife to iKnife and redeploys their weapon. Returns -1 if the player doesn't have said knife, 1 on success.
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b><font size="5"><font color="#d48484">Forwards</font></font></b><br /><br /><b>Possible return values:</b><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">enum _</span><span style="color: #007700">: </span><span style="color: #0000BB">ForwardReturns
<br /></span><span style="color: #007700">{
<br /> </span><span style="color: #0000BB">KnifeAction_Block </span><span style="color: #007700">= </span><span style="color: #0000BB">5</span><span style="color: #007700">, </span><span style="color: #FF8000">// blocks the action completely
<br /> </span><span style="color: #0000BB">KnifeAction_DoNothing </span><span style="color: #FF8000">// lets knifeapi do its job
<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 --><!-- 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">forward KnifeAction_TakeDamage</span><span style="color: #007700">( </span><span style="color: #0000BB">iAttacker</span><span style="color: #007700">, </span><span style="color: #0000BB">iVictim</span><span style="color: #007700">, </span><span style="color: #0000BB">Float</span><span style="color: #007700">: </span><span style="color: #0000BB">fDamage</span><span style="color: #007700">, </span><span style="color: #0000BB">iKnife </span><span style="color: #007700">)
<br /></span><span style="color: #FF8000">//Called on Ham_TakeDamage event. iKnife holds the knife ID.
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><!-- 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">forward KnifeAction_Deploy</span><span style="color: #007700">( </span><span style="color: #0000BB">iUser</span><span style="color: #007700">, </span><span style="color: #0000BB">iKnife </span><span style="color: #007700">)
<br /></span><span style="color: #FF8000">//Called on knife deploy. iKnife holds the knife ID. This is a post called forward, returning a value has no effect.
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><!-- 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">forward KnifeAction_PrimaryAttack</span><span style="color: #007700">( </span><span style="color: #0000BB">iUser</span><span style="color: #007700">, </span><span style="color: #0000BB">iKnife </span><span style="color: #007700">)
<br /></span><span style="color: #FF8000">//Called on knife primary attack. iKnife holds the knife ID.
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><!-- 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">forward KnifeAction_SecondaryAttack</span><span style="color: #007700">( </span><span style="color: #0000BB">iUser</span><span style="color: #007700">, </span><span style="color: #0000BB">iKnife </span><span style="color: #007700">)
<br /></span><span style="color: #FF8000">//See KnifeAction_PrimaryAttack.
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><!-- 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">forward KnifeAction_SoundPlay</span><span style="color: #007700">( </span><span style="color: #0000BB">iUser</span><span style="color: #007700">, </span><span style="color: #0000BB">iKnife</span><span style="color: #007700">, const </span><span style="color: #0000BB">szSound</span><span style="color: #007700">[ ] )
<br /></span><span style="color: #FF8000">//Fired when a sound is played. iKnife holds the knife ID, szSound is the music file sample.
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b><font size="5"><font color="#d48484">Example</font></font></b><br />This will add the default CS knife. Do not use this if you commented #DEFAULT_HANDS in the API plugin.<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">#include < amxmodx >
<br />#include < knife_api >
<br />#include < cstrike >
<br />
<br /></span><span style="color: #007700">new </span><span style="color: #0000BB">g_iKnife
<br />
<br /></span><span style="color: #007700">new const </span><span style="color: #0000BB">VMODEL</span><span style="color: #007700">[ ] = </span><span style="color: #DD0000">"models/v_knife.mdl"
<br /></span><span style="color: #007700">new const </span><span style="color: #0000BB">PMODEL</span><span style="color: #007700">[ ] = </span><span style="color: #DD0000">"models/p_knife.mdl"
<br />
<br /></span><span style="color: #007700">const </span><span style="color: #0000BB">KNIFE_PRICE </span><span style="color: #007700">= </span><span style="color: #0000BB">300
<br />
<br /></span><span style="color: #007700">public </span><span style="color: #0000BB">plugin_precache</span><span style="color: #007700">( )
<br />{
<br /> </span><span style="color: #FF8000">// not needed in this case, it's for the sake of example
<br />
<br /> </span><span style="color: #0000BB">precache_model</span><span style="color: #007700">( </span><span style="color: #0000BB">VMODEL </span><span style="color: #007700">)
<br /> </span><span style="color: #0000BB">precache_model</span><span style="color: #007700">( </span><span style="color: #0000BB">PMODEL </span><span style="color: #007700">)
<br />
<br /> </span><span style="color: #FF8000">// ALWAYS precache your files. If you don't, the server will crash, knife API doesn't do it for you
<br /></span><span style="color: #007700">}
<br />
<br />public </span><span style="color: #0000BB">plugin_init</span><span style="color: #007700">( )
<br />{
<br /> </span><span style="color: #0000BB">g_iKnife </span><span style="color: #007700">= </span><span style="color: #0000BB">register_knife</span><span style="color: #007700">(
<br /> .</span><span style="color: #0000BB">v_model </span><span style="color: #007700">= </span><span style="color: #0000BB">VMODEL</span><span style="color: #007700">,
<br /> .</span><span style="color: #0000BB">p_model </span><span style="color: #007700">= </span><span style="color: #0000BB">PMODEL</span><span style="color: #007700">,
<br /> .</span><span style="color: #0000BB">w_model </span><span style="color: #007700">= </span><span style="color: #DD0000">""</span><span style="color: #007700">, </span><span style="color: #FF8000">// don't need this, w_knife.mdl is bugged anyways, let's just use w_backpack.mdl or add your custom model
<br /> </span><span style="color: #007700">.</span><span style="color: #0000BB">deploysound </span><span style="color: #007700">= </span><span style="color: #DD0000">""</span><span style="color: #007700">, </span><span style="color: #FF8000">// we keep this default
<br /> </span><span style="color: #007700">.</span><span style="color: #0000BB">slashsound </span><span style="color: #007700">= </span><span style="color: #DD0000">""</span><span style="color: #007700">, </span><span style="color: #FF8000">// we keep this default
<br /> </span><span style="color: #007700">.</span><span style="color: #0000BB">stabsound </span><span style="color: #007700">= </span><span style="color: #DD0000">""</span><span style="color: #007700">, </span><span style="color: #FF8000">// we keep this default
<br /> </span><span style="color: #007700">.</span><span style="color: #0000BB">whiffsound </span><span style="color: #007700">= </span><span style="color: #DD0000">""</span><span style="color: #007700">, </span><span style="color: #FF8000">// we keep this default
<br /> </span><span style="color: #007700">.</span><span style="color: #0000BB">wallsound </span><span style="color: #007700">= </span><span style="color: #DD0000">""</span><span style="color: #007700">, </span><span style="color: #FF8000">// we keep this default
<br /> </span><span style="color: #007700">.</span><span style="color: #0000BB">bDroppable </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">, </span><span style="color: #FF8000">// let's make the knife droppable
<br /> </span><span style="color: #007700">.</span><span style="color: #0000BB">primarydamage </span><span style="color: #007700">= </span><span style="color: #0000BB">15.0</span><span style="color: #007700">, </span><span style="color: #FF8000">// I think?
<br /> </span><span style="color: #007700">.</span><span style="color: #0000BB">secondarydamage </span><span style="color: #007700">= </span><span style="color: #0000BB">55.0</span><span style="color: #007700">,</span><span style="color: #FF8000">// I think?
<br /> </span><span style="color: #007700">.</span><span style="color: #0000BB">primarydelay </span><span style="color: #007700">= </span><span style="color: #0000BB">0.0</span><span style="color: #007700">, </span><span style="color: #FF8000">// no need to edit this
<br /> </span><span style="color: #007700">.</span><span style="color: #0000BB">secondarydelay </span><span style="color: #007700">= </span><span style="color: #0000BB">0.0 </span><span style="color: #FF8000">// no need to edit this
<br /> </span><span style="color: #007700">)
<br />
<br /> </span><span style="color: #0000BB">register_plugin</span><span style="color: #007700">( </span><span style="color: #DD0000">"Knife API example"</span><span style="color: #007700">, </span><span style="color: #DD0000">"1.0"</span><span style="color: #007700">, </span><span style="color: #DD0000">"idiotstrike" </span><span style="color: #007700">)
<br />
<br /> </span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">( </span><span style="color: #DD0000">"say /buyknife"</span><span style="color: #007700">, </span><span style="color: #DD0000">"cmdbuyknife" </span><span style="color: #007700">)
<br />}
<br />
<br />public </span><span style="color: #0000BB">cmdbuyknife</span><span style="color: #007700">( </span><span style="color: #0000BB">id </span><span style="color: #007700">)
<br />{
<br /> if( !</span><span style="color: #0000BB">is_user_alive</span><span style="color: #007700">( </span><span style="color: #0000BB">id </span><span style="color: #007700">) )
<br /> {
<br /> </span><span style="color: #0000BB">client_print</span><span style="color: #007700">( </span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #0000BB">print_chat</span><span style="color: #007700">, </span><span style="color: #DD0000">"You need to be alive." </span><span style="color: #007700">)
<br /> }
<br /> else if( </span><span style="color: #0000BB">has_knife</span><span style="color: #007700">( </span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #0000BB">g_iKnife </span><span style="color: #007700">) )
<br /> {
<br /> </span><span style="color: #0000BB">client_print</span><span style="color: #007700">( </span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #0000BB">print_chat</span><span style="color: #007700">, </span><span style="color: #DD0000">"You already have this knife. Switch to knife and press R to see it." </span><span style="color: #007700">)
<br /> }
<br /> else
<br /> {
<br /> new </span><span style="color: #0000BB">iMoney </span><span style="color: #007700">= </span><span style="color: #0000BB">cs_get_user_money</span><span style="color: #007700">( </span><span style="color: #0000BB">id </span><span style="color: #007700">)
<br />
<br /> if( </span><span style="color: #0000BB">iMoney </span><span style="color: #007700">< </span><span style="color: #0000BB">KNIFE_PRICE </span><span style="color: #007700">)
<br /> {
<br /> </span><span style="color: #0000BB">client_print</span><span style="color: #007700">( </span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #0000BB">print_center</span><span style="color: #007700">, </span><span style="color: #DD0000">"You have insufficient funds." </span><span style="color: #007700">)
<br /> }
<br /> else
<br /> {
<br /> </span><span style="color: #0000BB">give_knife</span><span style="color: #007700">( </span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #0000BB">g_iKnife </span><span style="color: #007700">)
<br /> </span><span style="color: #0000BB">cs_set_user_money</span><span style="color: #007700">( </span><span style="color: #0000BB">id</span><span style="color: #007700">, </span><span style="color: #0000BB">iMoney </span><span style="color: #007700">- </span><span style="color: #0000BB">KNIFE_PRICE </span><span style="color: #007700">)
<br /> }
<br /> }
<br />
<br /> return </span><span style="color: #0000BB">PLUGIN_HANDLED
<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 -->The resources are not necessary if you decide to comment #DEFAULT_HANDS and use knife as default instead.<br /><br /><b><font size="5"><font color="#d48484">Video</font></font></b><br /><a href="https://www.youtube.com/watch?v=o3NdqBupyZE&feature=youtu.be" target="_blank">Video of Knife API with the example plugin on YouTube</a><br /><br /></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/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=133423"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1399912972">Get Source</a> (knifeapi.sma - 16.3 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/inc.gif" alt="File Type: inc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...38;d=1399912972">knife_api.inc</a> (900 Bytes)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- 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=1399915424">resources.zip</a> (244.5 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

Knife API
Temat rozp. Adminek AMXX.PL, 12.05.2014 17:46
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych