Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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

BB Bank Menu


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

Napisano 04.06.2016 20:00

<div>hi all :) I want to share This plugins with you :3<br /><br />This plugin created by someone (anonyme :twisted: ) and fixed by me :wink:<br /><br />this plugin like &quot;bank system&quot; in zp but this used in base builder Mod<br /><br /><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&nbsp;&lt;amxmodx&gt;&nbsp;&nbsp;&nbsp;<br />#include&nbsp;&lt;amxmisc&gt;&nbsp;&nbsp;&nbsp;<br />#include&nbsp;&lt;cstrike&gt;&nbsp;&nbsp;&nbsp;<br />#include&nbsp;&lt;hamsandwich&gt;&nbsp;&nbsp;&nbsp;<br />#include&nbsp;&lt;basebuilder&gt;&nbsp;&nbsp;&nbsp;<br />#include&nbsp;&lt;fun&gt;&nbsp;&nbsp;&nbsp;<br />#include&nbsp;&lt;&nbsp;ColorChat&nbsp;&gt;&nbsp;<br />#include&nbsp;&lt;&nbsp;fvault&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />#pragma&nbsp;dynamic&nbsp;32768&nbsp;&nbsp;&nbsp;&nbsp;<br />#define&nbsp;is_valid_player(%1)&nbsp;(1&nbsp;&lt;=&nbsp;%1&nbsp;&lt;=&nbsp;32)&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />///////#define&nbsp;STEAM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />#define&nbsp;NICK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />///////#define&nbsp;IP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">33</span><span style="color: #007700">]&nbsp;&nbsp;&nbsp;<br />new&nbsp;</span><span style="color: #0000BB">g_DonateID</span><span style="color: #007700">[</span><span style="color: #0000BB">33</span><span style="color: #007700">]&nbsp;&nbsp;<br /><br /></span><span style="color: #0000BB">native&nbsp;bb_get_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">native&nbsp;bb_set_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">amount</span><span style="color: #007700">)&nbsp;<br /><br />public&nbsp;</span><span style="color: #0000BB">plugin_init</span><span style="color: #007700">()&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_plugin</span><span style="color: #007700">(</span><span style="color: #DD0000">"Bank&nbsp;Menu"</span><span style="color: #007700">,</span><span style="color: #DD0000">"2.1"</span><span style="color: #007700">,</span><span style="color: #DD0000">"Fixed&nbsp;By&nbsp;PlayBoy"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"takeAmount"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"cmdTakeAmount"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"saveAmount"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"cmdSaveAmount"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"donate"</span><span style="color: #007700">,</span><span style="color: #DD0000">"menuDonate"</span><span style="color: #007700">)&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say&nbsp;donate"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"menuDonate"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say&nbsp;/donate"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"menuDonate"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say&nbsp;/bank"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"PlayBoyBank"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say&nbsp;bank"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"PlayBoyBank"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say_team&nbsp;/bank"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"PlayBoyBank"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />}&nbsp;&nbsp;&nbsp;<br /><br />public&nbsp;</span><span style="color: #0000BB">PlayBoyBank</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">is_valid_player</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">))&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">title</span><span style="color: #007700">[</span><span style="color: #0000BB">100</span><span style="color: #007700">]&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">formatex</span><span style="color: #007700">(</span><span style="color: #0000BB">title</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">99</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"yBank&nbsp;Menu&nbsp;r[Protected]&nbsp;^n&nbsp;yYou&nbsp;have&nbsp;%i&nbsp;Ammo&nbsp;packs"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">])&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">bankMenu&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">menu_create</span><span style="color: #007700">(</span><span style="color: #0000BB">title</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"menuBankHandler"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_additem</span><span style="color: #007700">(</span><span style="color: #0000BB">bankMenu</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"wWithdraw"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"1"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_additem</span><span style="color: #007700">(</span><span style="color: #0000BB">bankMenu</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"wWithdraw&nbsp;All^n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"2"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_additem</span><span style="color: #007700">(</span><span style="color: #0000BB">bankMenu</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"wDeposit"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"3"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_additem</span><span style="color: #007700">(</span><span style="color: #0000BB">bankMenu</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"wDeposit&nbsp;All^n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"4"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_additem</span><span style="color: #007700">(</span><span style="color: #0000BB">bankMenu</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"yManage&nbsp;Your&nbsp;Account^n^n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"5"</span><span style="color: #007700">)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_additem</span><span style="color: #007700">(</span><span style="color: #0000BB">bankMenu</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"rTransfer&nbsp;Ammo&nbsp;Packs^n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"6"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_display</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">bankMenu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED</span><span style="color: #007700">;&nbsp;&nbsp;&nbsp;<br />}&nbsp;&nbsp;&nbsp;<br /><br />public&nbsp;</span><span style="color: #0000BB">menuBankHandler</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">menu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">item</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">data</span><span style="color: #007700">[</span><span style="color: #0000BB">6</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">iName</span><span style="color: #007700">[</span><span style="color: #0000BB">64</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">access</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">callback&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;menu_item_getinfo</span><span style="color: #007700">(</span><span style="color: #0000BB">menu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">item</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">access</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">data</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">5</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iName</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">63</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">callback</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">key&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">str_to_num</span><span style="color: #007700">(</span><span style="color: #0000BB">data</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;switch(</span><span style="color: #0000BB">key</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">:&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">client_cmd</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"messagemode&nbsp;takeAmount"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">:&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">cmdTakeAll</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">:&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">client_cmd</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"messagemode&nbsp;saveAmount"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">4</span><span style="color: #007700">:&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">cmdSaveAll</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">5</span><span style="color: #007700">:&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">client_cmd&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"say&nbsp;/register"</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">6</span><span style="color: #007700">:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menuDonate</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />}&nbsp;&nbsp;&nbsp;<br /><br />public&nbsp;</span><span style="color: #0000BB">cmdTakeAmount</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">szAps</span><span style="color: #007700">[</span><span style="color: #0000BB">11</span><span style="color: #007700">]&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">read_args</span><span style="color: #007700">(</span><span style="color: #0000BB">szAps</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">10</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">remove_quotes</span><span style="color: #007700">(</span><span style="color: #0000BB">szAps</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">equal</span><span style="color: #007700">(</span><span style="color: #0000BB">szAps</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">""</span><span style="color: #007700">)&nbsp;||&nbsp;</span><span style="color: #0000BB">equal</span><span style="color: #007700">(</span><span style="color: #0000BB">szAps</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"&nbsp;"</span><span style="color: #007700">))&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">iAps&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">str_to_num</span><span style="color: #007700">(</span><span style="color: #0000BB">szAps</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">iAps&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">iApsSum&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">iAps&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">bb_get_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">iAps&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">iApsSum&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">999</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">bb_set_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iApsSum</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]&nbsp;-=&nbsp;</span><span style="color: #0000BB">iAps&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ColorChat</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">RED</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^3[G#D]&nbsp;^1You&nbsp;Took&nbsp;^3%i&nbsp;^1Ammopacks&nbsp;From&nbsp;Your&nbsp;Bank.&nbsp;Now&nbsp;You&nbsp;Have&nbsp;^3%i&nbsp;^1Ammopacks&nbsp;In&nbsp;Your&nbsp;Bank."</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iAps</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">])&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_CONTINUE&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">ColorChat</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">RED</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^3[G#D]&nbsp;^1You&nbsp;Dont&nbsp;Have&nbsp;Enough&nbsp;Ammopacks&nbsp;Or&nbsp;You&nbsp;Wanted&nbsp;To&nbsp;Take&nbsp;Too&nbsp;Much&nbsp;Ammopacks."</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_CONTINUE&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #007700">}&nbsp;&nbsp;&nbsp;<br /><br />public&nbsp;</span><span style="color: #0000BB">cmdTakeAll</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">iApsSum&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">bb_get_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;+&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">iApsSum&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">999</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">bb_set_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iApsSum</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">ColorChat</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">RED</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^3[G#D]&nbsp;^1You&nbsp;Took&nbsp;All&nbsp;^3%i&nbsp;^1Ammopacks&nbsp;From&nbsp;Your&nbsp;Bank."</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">])&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">0&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;if(</span><span style="color: #0000BB">iApsSum&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">999</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">giveAps&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">999&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">bb_get_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">giveAps&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">])&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">bb_set_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">giveAps&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">bb_get_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">))&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]&nbsp;-=&nbsp;</span><span style="color: #0000BB">giveAps&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ColorChat</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">RED</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^3[G#D]&nbsp;^1You&nbsp;Took&nbsp;^3%i&nbsp;^1Ammopacks&nbsp;From&nbsp;Your&nbsp;Bank.&nbsp;Now&nbsp;You&nbsp;Have&nbsp;%i&nbsp;Ammopacks&nbsp;In&nbsp;Your&nbsp;Bank."</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">giveAps</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">])&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />}&nbsp;&nbsp;&nbsp;<br /><br />public&nbsp;</span><span style="color: #0000BB">cmdSaveAmount</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">szAps</span><span style="color: #007700">[</span><span style="color: #0000BB">11</span><span style="color: #007700">]&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">read_args</span><span style="color: #007700">(</span><span style="color: #0000BB">szAps</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">10</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">remove_quotes</span><span style="color: #007700">(</span><span style="color: #0000BB">szAps</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">equal</span><span style="color: #007700">(</span><span style="color: #0000BB">szAps</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">""</span><span style="color: #007700">)&nbsp;||&nbsp;</span><span style="color: #0000BB">equal</span><span style="color: #007700">(</span><span style="color: #0000BB">szAps</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"&nbsp;"</span><span style="color: #007700">))&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">iAps&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">str_to_num</span><span style="color: #007700">(</span><span style="color: #0000BB">szAps</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">iAps&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">haveAps&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">bb_get_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">iAps&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">haveAps</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">bb_set_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">haveAps&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">iAps</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]&nbsp;+=&nbsp;</span><span style="color: #0000BB">iAps&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ColorChat</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">RED</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^3[G#D]&nbsp;^1You&nbsp;Saved&nbsp;^3%i&nbsp;Ammopacks&nbsp;In&nbsp;Your&nbsp;Bank.&nbsp;Now&nbsp;You&nbsp;Have&nbsp;^3%i&nbsp;^1Ammopacks&nbsp;In&nbsp;Your&nbsp;Bank."</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iAps</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">])&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">ColorChat</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">RED</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^3[G#D]&nbsp;^1You&nbsp;Dont&nbsp;Have&nbsp;Enough&nbsp;Ammopacks"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_CONTINUE&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #007700">}&nbsp;&nbsp;&nbsp;<br /><br />public&nbsp;</span><span style="color: #0000BB">cmdSaveAll</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">haveAps&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">bb_get_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">bb_set_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]&nbsp;+=&nbsp;</span><span style="color: #0000BB">haveAps&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;ColorChat</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">RED</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^3[G#D]&nbsp;^1You&nbsp;Saved&nbsp;^3%i&nbsp;^1Ammopacks&nbsp;To&nbsp;Your&nbsp;Bank.&nbsp;Now&nbsp;You&nbsp;Have&nbsp;^3%i&nbsp;^1Ammopacks&nbsp;In&nbsp;Your&nbsp;Bank."</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">haveAps</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">])&nbsp;&nbsp;&nbsp;<br />}&nbsp;&nbsp;&nbsp;<br /><br />public&nbsp;</span><span style="color: #0000BB">menuDonate</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">DonateMenu&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">menu_create</span><span style="color: #007700">(</span><span style="color: #DD0000">"r[G#D]&nbsp;wChoose&nbsp;A&nbsp;Player&nbsp;To&nbsp;Donate:"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"menuDonateHandler"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">players</span><span style="color: #007700">[</span><span style="color: #0000BB">32</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">pnum</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">tempid&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">szName</span><span style="color: #007700">[</span><span style="color: #0000BB">32</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">szTempid</span><span style="color: #007700">[</span><span style="color: #0000BB">10</span><span style="color: #007700">]&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_players</span><span style="color: #007700">(</span><span style="color: #0000BB">players</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">pnum</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;for(&nbsp;new&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">pnum</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">++&nbsp;)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">tempid&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">players</span><span style="color: #007700">[</span><span style="color: #0000BB">i</span><span style="color: #007700">]&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #0000BB">tempid</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_user_name</span><span style="color: #007700">(</span><span style="color: #0000BB">tempid</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szName</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">31</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">num_to_str</span><span style="color: #007700">(</span><span style="color: #0000BB">tempid</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szTempid</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">9</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_additem</span><span style="color: #007700">(</span><span style="color: #0000BB">DonateMenu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szName</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szTempid</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_display</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">DonateMenu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />}&nbsp;&nbsp;&nbsp;<br /><br />public&nbsp;</span><span style="color: #0000BB">menuDonateHandler</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">menu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">item</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">data</span><span style="color: #007700">[</span><span style="color: #0000BB">6</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">iName</span><span style="color: #007700">[</span><span style="color: #0000BB">64</span><span style="color: #007700">];&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">access</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">callback</span><span style="color: #007700">;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_item_getinfo</span><span style="color: #007700">(</span><span style="color: #0000BB">menu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">item</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">access</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">data</span><span style="color: #007700">,</span><span style="color: #0000BB">5</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iName</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">63</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">callback</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">tempid&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">str_to_num</span><span style="color: #007700">(</span><span style="color: #0000BB">data</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g_DonateID</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">tempid&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;client_cmd</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"messagemode&nbsp;donate"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_destroy</span><span style="color: #007700">(</span><span style="color: #0000BB">menu</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED</span><span style="color: #007700">;&nbsp;&nbsp;&nbsp;<br />}&nbsp;&nbsp;&nbsp;<br /><br />public&nbsp;</span><span style="color: #0000BB">cmdDonate</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">g_DonateID</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]&nbsp;==&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">szAps</span><span style="color: #007700">[</span><span style="color: #0000BB">11</span><span style="color: #007700">]&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">read_args</span><span style="color: #007700">(</span><span style="color: #0000BB">szAps</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">10</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">remove_quotes</span><span style="color: #007700">(</span><span style="color: #0000BB">szAps</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">iAps&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">str_to_num</span><span style="color: #007700">(</span><span style="color: #0000BB">szAps</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">iAps&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if(</span><span style="color: #0000BB">iAps&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">])&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Take&nbsp;iAps&nbsp;away&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]&nbsp;-=&nbsp;</span><span style="color: #0000BB">iAps&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">NameDonate</span><span style="color: #007700">[</span><span style="color: #0000BB">45</span><span style="color: #007700">]&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_user_name</span><span style="color: #007700">(</span><span style="color: #0000BB">g_DonateID</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">NameDonate</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">44</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">Name</span><span style="color: #007700">[</span><span style="color: #0000BB">45</span><span style="color: #007700">]&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_user_name</span><span style="color: #007700">(</span><span style="color: #0000BB">g_DonateID</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">Name</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">44</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">ColorChat</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">RED</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^3[G#D]&nbsp;^1You&nbsp;Donated&nbsp;^3%i&nbsp;^1Ammopacks&nbsp;To&nbsp;^3%s^1.&nbsp;Now&nbsp;You&nbsp;Have&nbsp;%i&nbsp;ammopacks&nbsp;In&nbsp;Your&nbsp;Bank."</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iAps</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">NameDonate</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">])&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;give&nbsp;iAps&nbsp;to&nbsp;Donateid&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">g_DonateID</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]]&nbsp;+=&nbsp;</span><span style="color: #0000BB">iAps&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ColorChat</span><span style="color: #007700">(</span><span style="color: #0000BB">g_DonateID</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">RED</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^3[G#D]&nbsp;^3%s&nbsp;^1Donated&nbsp;^3%i&nbsp;^1Ammopacks&nbsp;To&nbsp;You.&nbsp;Now&nbsp;You&nbsp;Have&nbsp;^3%i&nbsp;^1Ammopacks&nbsp;In&nbsp;Your&nbsp;Bank."</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Name</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iAps</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">g_DonateID</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]])&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">ColorChat</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">RED</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^3[G#D]&nbsp;^1You&nbsp;Dont&nbsp;Have&nbsp;Enough&nbsp;Ammopacks"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_CONTINUE&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #007700">}&nbsp;&nbsp;&nbsp;<br /><br />public&nbsp;</span><span style="color: #0000BB">SaveData</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">szMethod</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">65&nbsp;</span><span style="color: #007700">];&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#if&nbsp;defined&nbsp;STEAM&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_user_authid</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szMethod</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">34&nbsp;</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#endif&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;#if&nbsp;defined&nbsp;NICK&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_user_name</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szMethod</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">34&nbsp;</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#endif&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;#if&nbsp;defined&nbsp;IP&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_user_ip</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szMethod</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">34</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#endif&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">vaultkey</span><span style="color: #007700">[</span><span style="color: #0000BB">64</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">vaultdata</span><span style="color: #007700">[</span><span style="color: #0000BB">328</span><span style="color: #007700">];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #0000BB">vaultkey</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">63</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"bb_%s"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szMethod</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #0000BB">vaultdata</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">327</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"%i"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">fvault_set_data</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"bbVault"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">vaultkey</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">vaultdata&nbsp;</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;<br />}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br /></span><span style="color: #FF8000">//&nbsp;Load&nbsp;data&nbsp;function&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">LoadData</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">szMethod</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">65&nbsp;</span><span style="color: #007700">];&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#if&nbsp;defined&nbsp;STEAM&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_user_authid</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szMethod</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">34&nbsp;</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#endif&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;#if&nbsp;defined&nbsp;NICK&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_user_name</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szMethod</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">34&nbsp;</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#endif&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;#if&nbsp;defined&nbsp;IP&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_user_ip</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szMethod</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">34</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#endif&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">vaultkey</span><span style="color: #007700">[</span><span style="color: #0000BB">64</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">vaultdata</span><span style="color: #007700">[</span><span style="color: #0000BB">328</span><span style="color: #007700">];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #0000BB">vaultkey</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">63</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"bb_%s"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szMethod</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #0000BB">vaultdata</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">327</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"%i"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[</span><span style="color: #0000BB">id</span><span style="color: #007700">]);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">fvault_get_data</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"bbVault"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">vaultkey</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">vaultdata</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">charsmax</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">vaultdata&nbsp;</span><span style="color: #007700">)&nbsp;);&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g_AP</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">str_to_num</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">vaultdata&nbsp;</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;<br />}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #FF8000">//&nbsp;When&nbsp;client&nbsp;enter&nbsp;on&nbsp;server&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">client_putinserver</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">LoadData</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br /></span><span style="color: #FF8000">//&nbsp;When&nbsp;client&nbsp;disconnect&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">client_disconnect</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SaveData</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />}&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</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...08"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1465066771">GetSource</a> (G#D_bank_system.sma - 9.2 KB)

</td>
</tr><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...builder.inc</a>(9.4 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