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

Power VIP Knife by DecaK & PrInCe


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

Napisano 17.10.2016 15:56

<div>Hello i found a VIPMENU what is not to find here in Forum. SO i will post it only. Its in Bosnia Language. Found it in Gametracker.rs Forum. So when anyone have fun to translate it and post it in englisch, it will be good. When the Post dont ok then it can remove by a Mod. <br /><br />It have a vipmenu + knifemenu<br /><br />Commands are : /Knifemenu or /vipshop<br /><br />#include &lt;amxmodx&gt;<br /> #include &lt;amxmisc&gt; <br /> #include &lt;fun&gt; <br /> #include &lt;cstrike&gt;<br /> #include &lt;colorchat&gt;<br /> #include &lt;fakemeta&gt;<br /> #include &lt;hamsandwich&gt;<br /> #include &lt;engine&gt;<br /><br />For the Models u have to use own models . <br /><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">///////////////////////// VIP SHOP ///////////////////////<br />#include &lt;amxmodx&gt;<br />#include &lt;amxmisc&gt;<br />#include &lt;fun&gt;<br />#include &lt;cstrike&gt;<br />#include &lt;colorchat&gt;<br />#include &lt;fakemeta&gt;<br />#include &lt;hamsandwich&gt;<br />#include &lt;engine&gt;<br />&nbsp;<br />#define PLUGIN &quot;VipShop&quot;<br />#define VERSION &quot;1.0&quot;<br />#define AUTHOR &quot;DecaK&quot;<br />#define PLUGIN_NAME &quot;Teleport Smoke Grenade&quot;<br />#define PLUGIN_VERSION &quot;0.1&quot;<br />#define PLUGIN_AUTHOR &quot;VEN&quot;<br />&nbsp;<br />#define SMOKE_SCALE 30<br />#define SMOKE_FRAMERATE 12<br />#define SMOKE_GROUND_OFFSET 6<br />&nbsp;<br />new const g_sound_explosion[] = &quot;weapons/sg_explode.wav&quot;<br />new const g_classname_grenade[] = &quot;grenade&quot;<br />&nbsp;<br />new const Float:g_sign[4][2] = {{1.0, 1.0}, {1.0, -1.0}, {-1.0, -1.0}, {-1.0, 1.0}}<br />&nbsp;<br />new g_spriteid_steam1<br />new g_eventid_createsmoke<br />&nbsp;<br />public plugin_init()<br />{<br />&nbsp; &nbsp; register_plugin(PLUGIN, VERSION, AUTHOR)<br />&nbsp; &nbsp; register_clcmd(&quot;say /vipshop&quot;,&quot;VipShop&quot;)<br />&nbsp; &nbsp; register_clcmd(&quot;say_team /vipshop&quot;, &quot;VipShop&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; register_forward(FM_EmitSound, &quot;forward_emitsound&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; register_forward(FM_PlaybackEvent, &quot;forward_playbackevent&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; g_spriteid_steam1 = engfunc(EngFunc_PrecacheModel, &quot;sprites/steam1.spr&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; g_eventid_createsmoke = engfunc(EngFunc_PrecacheEvent, 1, &quot;events/createsmoke.sc&quot;)<br />}<br />&nbsp;<br />public VipShop(id)<br />{<br />&nbsp; &nbsp; if(!(get_user_flags(id) &amp; ADMIN_LEVEL_H))<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[^3VipShop^4] ^1Nemas pristup!&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new menu = menu_create(&quot;[VipShop] Izaberi Item:&quot;, &quot;VipShopHandle&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // plugin pravi novi menu koji se zove &quot;[VipShop] Izaberi Item<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu_additem(menu, &quot;Respawn CT | 5500$&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu_additem(menu, &quot;Respawn T | 5500$&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu_additem(menu, &quot;M4A1 sa 1 metkom | 14000$&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu_additem(menu, &quot;Teleport Bomba | 3000$&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu_additem(menu, &quot;Red Glow | 1000&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; menu_display(id, menu)<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; return PLUGIN_HANDLED<br />}<br />&nbsp;<br />public VipShopHandle(id, menu, item)<br />{<br />&nbsp; &nbsp; if(item == MENU_EXIT)&nbsp; <br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; menu_destroy(menu)<br />&nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_CONTINUE<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; switch(item)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; case 0:<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new money = cs_get_user_money(id)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(money &lt; 5500)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[^3VipShop^4]^3 Nemas dovoljno novca za kupovinu ^4CT Respawna^3!&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; cs_set_user_team(id, CS_TEAM_CT);<br />&nbsp; &nbsp; &nbsp; &nbsp; ExecuteHamB(Ham_CS_RoundRespawn, id);<br />&nbsp; &nbsp; &nbsp; &nbsp; give_item (id, &quot;weapon_knife&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; cs_set_user_team(id, CS_TEAM_CT);<br />&nbsp; &nbsp; &nbsp; &nbsp; cs_set_user_money(id, money - 5500)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; case 1: // slucaj 2<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new money = cs_get_user_money(id)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(money &lt; 5500)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[^3VipShop^4]^3 Nemas dovoljno novca za kupovinu ^4T Respawna^3!&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else // ostalo (ako ima vise ili jednako 500)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; cs_set_user_team(id, CS_TEAM_T);<br />&nbsp; &nbsp; &nbsp; &nbsp; ExecuteHamB(Ham_CS_RoundRespawn, id);<br />&nbsp; &nbsp; &nbsp; &nbsp; give_item(id, &quot;weapon_knife&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; cs_set_user_money(id, money - 5500)<br />&nbsp; &nbsp; &nbsp; &nbsp; cs_set_user_team(id, CS_TEAM_T);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; case 2:<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new money = cs_get_user_money(id)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(money &lt; 14000)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[^3VipShop^4]^3 Nemas dovoljno novca za kupovinu ^4M4A1 sa 2 metka^3!&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; give_item(id, &quot;weapon_m4a1&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cs_set_weapon_ammo(find_ent_by_owner(-1, &quot;weapon_m4a1&quot;, id), 1)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cs_set_user_bpammo( id, CSW_M4A1, 1 );<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cs_set_user_money(id, money - 14000)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; case 3:<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; new money = cs_get_user_money(id)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(money &lt; 3000)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[^3VipShop^4]^3 Nemas dovoljno novca za kupovinu ^4Teleport Bombe^3!&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; give_item(id, &quot;weapon_smokegrenade&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[VipShop]^1 Kupio si ^3Teleport Bombu^1!&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cs_set_user_money(id, money - 1000)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; case 4:<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; new money = cs_get_user_money(id)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(money &lt; 1000)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[^3VipShop^4]^3 Nemas dovoljno novca za kupovinu ^4Red Glow^3!&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[VipShop]^1 Kupio si ^3Red Glow ^1!&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cs_set_user_money(id, money - 1000)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_HANDLED<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; return PLUGIN_HANDLED<br />}<br />public forward_emitsound(ent, channel, const sound[]) {<br />&nbsp; &nbsp; &nbsp; &nbsp; if (!equal(sound, g_sound_explosion) || !is_grenade(ent))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return FMRES_IGNORED<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; static id, Float:origin[3]<br />&nbsp; &nbsp; &nbsp; &nbsp; id = pev(ent, pev_owner)<br />&nbsp; &nbsp; &nbsp; &nbsp; pev(ent, pev_origin, origin)<br />&nbsp; &nbsp; &nbsp; &nbsp; engfunc(EngFunc_EmitSound, ent, CHAN_WEAPON, g_sound_explosion, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)<br />&nbsp; &nbsp; &nbsp; &nbsp; engfunc(EngFunc_SetOrigin, ent, Float:{8191.0, 8191.0, 8191.0})<br />&nbsp; &nbsp; &nbsp; &nbsp; origin[2] += SMOKE_GROUND_OFFSET<br />&nbsp; &nbsp; &nbsp; &nbsp; create_smoke(origin)<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; if (is_user_alive(id)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; static Float:mins[3], hull<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pev(id, pev_mins, mins)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; origin[2] -= mins[2] + SMOKE_GROUND_OFFSET<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hull = pev(id, pev_flags) &amp; FL_DUCKING ? HULL_HEAD : HULL_HUMAN<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (is_hull_vacant(origin, hull))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; engfunc(EngFunc_SetOrigin, id, origin)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else { // close to a solid object, trying to find a vacant spot<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; static Float:vec[3]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vec[2] = origin[2]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (new i; i &lt; sizeof g_sign; ++i) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vec[0] = origin[0] - mins[0] * g_sign[i][0]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vec[1] = origin[1] - mins[1] * g_sign[i][1]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (is_hull_vacant(vec, hull)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; engfunc(EngFunc_SetOrigin, id, vec)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break<br />&nbsp; &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; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; return FMRES_SUPERCEDE<br />}<br />&nbsp;<br />public forward_playbackevent(flags, invoker, eventindex) {<br />&nbsp; &nbsp; &nbsp; &nbsp; // we do not need a large amount of smoke<br />&nbsp; &nbsp; &nbsp; &nbsp; if (eventindex == g_eventid_createsmoke)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return FMRES_SUPERCEDE<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; return FMRES_IGNORED<br />}<br />&nbsp;<br />bool:is_grenade(ent) {<br />&nbsp; &nbsp; &nbsp; &nbsp; if (!pev_valid(ent))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; static classname[sizeof g_classname_grenade + 1]<br />&nbsp; &nbsp; &nbsp; &nbsp; pev(ent, pev_classname, classname, sizeof g_classname_grenade)<br />&nbsp; &nbsp; &nbsp; &nbsp; if (equal(classname, g_classname_grenade))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; return false<br />}<br />&nbsp;<br />create_smoke(const Float:origin[3]) {<br />&nbsp; &nbsp; &nbsp; &nbsp; // engfunc because origin are float<br />&nbsp; &nbsp; &nbsp; &nbsp; engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, origin, 0)<br />&nbsp; &nbsp; &nbsp; &nbsp; write_byte(TE_SMOKE)<br />&nbsp; &nbsp; &nbsp; &nbsp; engfunc(EngFunc_WriteCoord, origin[0])<br />&nbsp; &nbsp; &nbsp; &nbsp; engfunc(EngFunc_WriteCoord, origin[1])<br />&nbsp; &nbsp; &nbsp; &nbsp; engfunc(EngFunc_WriteCoord, origin[2])<br />&nbsp; &nbsp; &nbsp; &nbsp; write_short(g_spriteid_steam1)<br />&nbsp; &nbsp; &nbsp; &nbsp; write_byte(SMOKE_SCALE)<br />&nbsp; &nbsp; &nbsp; &nbsp; write_byte(SMOKE_FRAMERATE)<br />&nbsp; &nbsp; &nbsp; &nbsp; message_end()<br />}<br />&nbsp;<br />stock bool:is_hull_vacant(const Float:origin[3], hull) {<br />&nbsp; &nbsp; &nbsp; &nbsp; new tr = 0<br />&nbsp; &nbsp; &nbsp; &nbsp; engfunc(EngFunc_TraceHull, origin, origin, 0, hull, 0, tr)<br />&nbsp; &nbsp; &nbsp; &nbsp; if (!get_tr2(tr, TR_StartSolid) &amp;&amp; !get_tr2(tr, TR_AllSolid) &amp;&amp; get_tr2(tr, TR_InOpen))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; return false<br />}<br />&nbsp;<br />&nbsp;<br />&nbsp;<br />//////////////////////////////////// Power KNIFE VIP Menu /////////////////////////////////////////////////<br />&nbsp;<br />#include &lt;amxmodx&gt;<br />#include &lt;amxmisc&gt;<br />#include &lt;engine&gt;<br />#include &lt;fakemeta&gt;<br />#include &lt;hamsandwich&gt;<br />#include &lt;colorchat&gt;<br />#include &lt;fun&gt;<br />&nbsp;<br />#define ACCESS_FLAG ADMIN_LEVEL_H<br />#define TASK_DELAY 0.5<br />#define TASK_MODEL 100<br />#define MODEL_PLAYER &quot;pkvip&quot;<br />&nbsp;<br />#define VIP_CHECK ADMIN_LEVEL_H<br />#define ADMINACCESS ADMIN_LEVEL_H<br />&nbsp;<br />new const VERSION[] = &quot;1.0&quot;<br />&nbsp;<br />static const COLOR[] = &quot;^x04&quot; //green<br />static const CONTACT[] = &quot;&quot;<br />&nbsp;<br />new pcvar_on<br />new maxplayers<br />new gmsgSayText<br />&nbsp;<br />new pcvar_obavestenje<br />&nbsp;<br />new jumpnum[33] = 0<br />new bool:dojump[33] = false<br />&nbsp;<br />new noz_igraca[33] = 0;<br />&nbsp;<br />new g_has_custom_model[33],g_player_model[33][32],Float:g_models_counter<br />&nbsp;<br />new const g_szUltra[ ] = &quot;models/pkvip/v_ultra.mdl&quot;;<br />new const g_szSuper[ ] = &quot;models/pkvip/v_super.mdl&quot;;<br />new const g_szZoom[ ] = &quot;models/pkvip/v_zoom.mdl&quot;;<br />new const g_szNormal[ ] = &quot;models/pkvip/v_normal.mdl&quot;;<br />&nbsp;<br />&nbsp;<br />new bool:ima_noz1[33]<br />new bool:ima_noz2[33]<br />new bool:ima_noz3[33]<br />new bool:ima_noz4[33]<br />&nbsp;<br />&nbsp;<br />public plugin_init()<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; register_plugin(&quot;Ultimate Knife VIP&quot;, VERSION, &quot;PrInCe &amp; DecaK&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; pcvar_on = register_cvar(&quot;model_on&quot;,&quot;1&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; if(get_pcvar_num(pcvar_on))<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_logevent(&quot;event_round_end&quot;, 2, &quot;1=Round_End&quot;)<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_event(&quot;CurWeapon&quot;, &quot;event_CurWeapon&quot;, &quot;be&quot;, &quot;1=1&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RegisterHam(Ham_Spawn,&quot;player&quot;,&quot;func_spawn&quot;,1)<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RegisterHam(Ham_Spawn,&quot;player&quot;,&quot;Spawn&quot;,2)<br />&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_clcmd(&quot;say&quot;, &quot;sayee&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_clcmd(&quot;say&quot;, &quot;handle_say&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_concmd(&quot;say /kmenu&quot;,&quot;proveri&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_concmd(&quot;say /knifemenu&quot;,&quot;proveri&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_concmd(&quot;say /vipinfo&quot;,&quot;vipinformacije&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_concmd(&quot;say /vipknife&quot;,&quot;proveri&quot;)<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_cvar(&quot;amx_contactinfo&quot;, CONTACT, FCVAR_SERVER)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gmsgSayText = get_user_msgid(&quot;SayText&quot;)<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_cvar(&quot;amx_maxjumps&quot;,&quot;1&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_cvar(&quot;amx_mjadminonly&quot;,&quot;1&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_forward(FM_SetClientKeyValue, &quot;fw_key_value&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_forward(FM_ClientUserInfoChanged, &quot;fw_user_info_changed&quot;)<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxplayers = get_maxplayers()<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pcvar_obavestenje = register_cvar(&quot;obavestenje&quot;, &quot;60&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_task(get_pcvar_float(pcvar_obavestenje),&quot;obavestenje&quot; , _ , _ , _ , &quot;b&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}<br />public plugin_precache()<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; new path[100]<br />&nbsp; &nbsp; &nbsp; &nbsp; formatex(path,sizeof path - 1,&quot;models/pkvip/%s.mdl&quot;,MODEL_PLAYER)<br />&nbsp; &nbsp; &nbsp; &nbsp; engfunc(EngFunc_PrecacheModel,path)<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; precache_model( g_szUltra );<br />&nbsp; &nbsp; &nbsp; &nbsp; precache_model( g_szSuper );<br />&nbsp; &nbsp; &nbsp; &nbsp; precache_model( g_szZoom );<br />&nbsp; &nbsp; &nbsp; &nbsp; precache_model( g_szNormal );<br />}<br />public func_spawn(id)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; if(is_user_alive(id))<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(get_user_flags(id) &amp; ACCESS_FLAG)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; copy(g_player_model[id], sizeof g_player_model[] - 1, MODEL_PLAYER)<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new currentmodel[32]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fm_get_user_model(id, currentmodel, sizeof currentmodel - 1)<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!equal(currentmodel, g_player_model[id]))<br />&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; &nbsp; &nbsp; &nbsp; &nbsp; set_task(1.0 + g_models_counter, &quot;task_set_model&quot;, id+TASK_MODEL)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g_models_counter += TASK_DELAY<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else if (g_has_custom_model[id])<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fm_reset_user_model(id)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}<br />&nbsp;<br />public client_disconnect(id)&nbsp; <br />{&nbsp; <br />&nbsp; &nbsp; noz_igraca[id] = 0;&nbsp; <br />&nbsp; &nbsp; ima_noz1[id] = false<br />&nbsp; &nbsp; ima_noz2[id] = false<br />&nbsp; &nbsp; ima_noz3[id] = false<br />&nbsp; &nbsp; ima_noz4[id] = false<br />&nbsp; &nbsp; jumpnum[id] = 0<br />&nbsp; &nbsp; dojump[id] = false<br />}<br />&nbsp;<br />public client_putinserver(id)<br />{<br />&nbsp; &nbsp; jumpnum[id] = 0<br />&nbsp; &nbsp; dojump[id] = false<br />}<br />&nbsp;<br />&nbsp;<br />public event_round_end()<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; g_models_counter = 0.0<br />}<br />public fw_key_value(id, const infobuffer[], const key[])<br />{&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; if (g_has_custom_model[id] &amp;&amp; equal(key, &quot;model&quot;))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return FMRES_SUPERCEDE<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; return FMRES_IGNORED<br />}<br />public fw_ClientUserInfoChanged(id)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; if (!g_has_custom_model[id])<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return FMRES_IGNORED<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; static currentmodel[32]<br />&nbsp; &nbsp; &nbsp; &nbsp; fm_get_user_model(id, currentmodel, sizeof currentmodel - 1)<br />&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; if (!equal(currentmodel, g_player_model[id]))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fm_set_user_model(id, g_player_model[id])<br />&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; return FMRES_IGNORED<br />}<br />public task_set_model(id)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; id -= TASK_MODEL<br />&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; fm_set_user_model(id, g_player_model[id])<br />}<br />stock fm_set_user_model(player, const modelname[])<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; engfunc(EngFunc_SetClientKeyValue, player, engfunc(EngFunc_GetInfoKeyBuffer, player), &quot;model&quot;, modelname)<br />&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; g_has_custom_model[player] = true<br />}<br />&nbsp;<br />stock fm_get_user_model(player, model[], len)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; engfunc(EngFunc_InfoKeyValue, engfunc(EngFunc_GetInfoKeyBuffer, player), &quot;model&quot;, model, len)<br />}<br />&nbsp;<br />stock fm_reset_user_model(player)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; g_has_custom_model[player] = false<br />&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; dllfunc(DLLFunc_ClientUserInfoChanged, player, engfunc(EngFunc_GetInfoKeyBuffer, player))<br />}<br />&nbsp;<br />public sayee(id){<br />&nbsp; &nbsp; if(get_user_flags(id) &amp; ADMIN_LEVEL_H)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; new said[192], name[30]<br />&nbsp; &nbsp; &nbsp; &nbsp; get_user_name(id,name,29)<br />&nbsp; &nbsp; &nbsp; &nbsp; read_args(said,191)<br />&nbsp; &nbsp; &nbsp; &nbsp; remove_quotes(said)<br />&nbsp; &nbsp; &nbsp; &nbsp; ColorChat(0, GREEN,&quot;[V.I.P] ^3%s ^1: %s&quot;,name,said)<br />&nbsp;<br />&nbsp; &nbsp; }<br />}<br />&nbsp;<br />public handle_say(id) {<br />&nbsp; &nbsp; new said[192]<br />&nbsp; &nbsp; read_args(said,192)<br />&nbsp; &nbsp; if( ( containi(said, &quot;who&quot;) != -1 &amp;&amp; containi(said, &quot;vip&quot;) != -1 ) || contain(said, &quot;/vips&quot;) != -1 )<br />&nbsp; &nbsp; &nbsp; &nbsp; set_task(0.1,&quot;print_adminlist&quot;,id)<br />&nbsp; &nbsp; return PLUGIN_CONTINUE<br />}<br />&nbsp;<br />&nbsp;<br />public print_adminlist(user)<br />{<br />&nbsp; &nbsp; new adminnames[33][32]<br />&nbsp; &nbsp; new message[256]<br />&nbsp; &nbsp; new contactinfo[256], contact[112]<br />&nbsp; &nbsp; new id, count, x, len<br />&nbsp; <br />&nbsp; &nbsp; for(id = 1 ; id &lt;= maxplayers ; id++)<br />&nbsp; &nbsp; &nbsp; &nbsp; if(is_user_connected(id))<br />&nbsp; &nbsp; &nbsp; &nbsp; if(get_user_flags(id) &amp; VIP_CHECK)<br />&nbsp; &nbsp; &nbsp; &nbsp; get_user_name(id, adminnames[count++], 31)<br />&nbsp; <br />&nbsp; &nbsp; len = format(message, 255, &quot;%s ONLINE VIP-ovi su: &quot;,COLOR)<br />&nbsp; &nbsp; if(count &gt; 0) {<br />&nbsp; &nbsp; &nbsp; &nbsp; for(x = 0 ; x &lt; count ; x++) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; len += format(message[len], 255-len, &quot;%s%s &quot;, adminnames[x], x &lt; (count-1) ? &quot;, &quot;:&quot;&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(len &gt; 96 ) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print_message(user, message)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; len = format(message, 255, &quot;%s &quot;,COLOR)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; print_message(user, message)<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; else {<br />&nbsp; &nbsp; &nbsp; &nbsp; len += format(message[len], 255-len, &quot;Nema online VIP-ova&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; print_message(user, message)<br />&nbsp; &nbsp; }<br />&nbsp; <br />&nbsp; &nbsp; get_cvar_string(&quot;amx_contactinfo&quot;, contact, 63)<br />&nbsp; &nbsp; if(contact[0])&nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; format(contactinfo, 111, &quot;%s Contact Server Vip -- %s&quot;, COLOR, contact)<br />&nbsp; &nbsp; &nbsp; &nbsp; print_message(user, contactinfo)<br />&nbsp; &nbsp; }<br />}<br />&nbsp;<br />print_message(id, msg[]) {<br />&nbsp; &nbsp; message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)<br />&nbsp; &nbsp; write_byte(id)<br />&nbsp; &nbsp; write_string(msg)<br />&nbsp; &nbsp; message_end()<br />}<br />&nbsp;<br />&nbsp;<br />public proveri(id)<br />{<br />&nbsp; if(get_user_flags(id) &amp; ADMIN_LEVEL_H)<br />&nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; meni(id);<br />&nbsp; }<br />&nbsp; else<br />&nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[VIP]^3 Nemas dozvolu da koristis vipa! Vip se mora kupiti!&quot;)<br />&nbsp; }<br />}<br />&nbsp;<br />public meni(id)<br />{&nbsp; &nbsp; <br />&nbsp; &nbsp; new menu= menu_create(&quot;yVIP Knife Menu r- yIzaberi&quot;,&quot;menu_handler&quot;)<br />&nbsp; <br />&nbsp; &nbsp; menu_additem(menu,&quot;wUltra Knife r[yGravitacijar]&quot;)<br />&nbsp; &nbsp; menu_additem(menu,&quot;wSuper Knife r[yBrzinar]&quot;)<br />&nbsp; &nbsp; menu_additem(menu,&quot;wHealth Knife r[yVise Helta]&quot;)<br />&nbsp; &nbsp; menu_additem(menu,&quot;wNormal Knife r[yLep Skinr]&quot;)<br />&nbsp; &nbsp; menu_display(id,menu);<br />}<br />&nbsp;<br />public menu_handler(id,menu,item)<br />{<br />&nbsp; &nbsp; if(item==MENU_EXIT)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; menu_destroy(menu);<br />&nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[VIP]^3 Zatvaram Knife Meni.^1&quot;)&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_CONTINUE;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; }<br />&nbsp;<br />&nbsp; &nbsp; switch(item)<br />&nbsp; &nbsp; {&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; case 0:<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noz_igraca[id] = 1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[VIP]^3 Izabrao si Ultra Knife, noz ce biti aktiviran na sledecem respawnu.^1&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; case 1:<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noz_igraca[id] = 2;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[VIP]^3 Izabrao si Super Knife, noz ce biti aktiviran na sledecem respawnu.^1&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; case 2:<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noz_igraca[id] = 3;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[VIP]^3 Izabrao si Zoom Knife, noz ce biti aktiviran na sledecem respawnu.^1&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; case 3:<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noz_igraca[id] = 4;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColorChat(id, TEAM_COLOR, &quot;^4[VIP]^3 Izabrao si Normal Knife, noz ce biti aktiviran na sledecem respawnu.^1&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; return PLUGIN_CONTINUE<br />}<br />&nbsp;<br />&nbsp;<br />public Spawn(id)<br />{&nbsp; &nbsp; &nbsp; <br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; if(!is_user_connected(id) || !is_user_alive(id) || get_user_flags(id) &amp; ADMIN_LEVEL_H)<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; switch(noz_igraca[id])<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 1:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_task(1.0, &quot;stavigravity&quot;, id);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz1[id] = true<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz2[id] = false<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz3[id] = false<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz4[id] = false<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_pev(id, pev_viewmodel2, g_szUltra );&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 2:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_task(1.0, &quot;stavispeed&quot;, id);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz2[id] = true<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz1[id] = false<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz3[id] = false<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz4[id] = false<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_pev(id, pev_viewmodel2, g_szSuper );<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 3:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_task(2.0, &quot;stavihelte&quot;, id);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz3[id] = true<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz1[id] = false<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz2[id] = false<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz4[id] = false<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_pev(id, pev_viewmodel2, g_szZoom );<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 4:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz4[id] = true<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz1[id] = false<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz2[id] = false<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ima_noz3[id] = false<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_pev(id, pev_viewmodel2, g_szNormal);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp;<br />}<br />&nbsp;<br />&nbsp;<br />public stavigravity(id)<br />{<br />&nbsp; &nbsp; set_user_gravity(id, 0.4)<br />&nbsp;<br />}<br />&nbsp;<br />public stavispeed(id)<br />{<br />&nbsp; &nbsp; set_user_maxspeed(id , get_user_maxspeed(id) + 300.0)<br />}<br />&nbsp;<br />public stavihelte(id)<br />{&nbsp; <br />&nbsp; &nbsp; set_user_health(id,&nbsp; 80)<br />}<br />&nbsp;<br />public event_CurWeapon(id)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; static weapon<br />&nbsp; &nbsp; &nbsp; &nbsp; weapon = read_data(2)<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; switch(weapon)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case CSW_KNIFE:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(ima_noz1[id] == true)<br />&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; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_pev(id, pev_viewmodel2, g_szUltra );<br />&nbsp; &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; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(ima_noz2[id] == true)<br />&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; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_pev(id, pev_viewmodel2, g_szSuper );<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_user_maxspeed(id , get_user_maxspeed(id) + 300.0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&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; else if(ima_noz3[id] == true)<br />&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; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_pev(id, pev_viewmodel2, g_szZoom );<br />&nbsp; &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; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(ima_noz4[id] == true)<br />&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; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_pev(id, pev_viewmodel2, g_szNormal );<br />&nbsp; &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; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}<br />&nbsp;<br />public vipinformacije(id)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; static motd[1501], len<br />&nbsp; &nbsp; &nbsp; &nbsp; len = format(motd, 1500,&quot;&lt;body bgcolor=#000000&gt;&lt;font color=#87cefa&gt;&lt;pre&gt;&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; len += format(motd[len], 1500-len,&quot;&lt;center&gt;&lt;h4&gt;&lt;font color=^&quot;red^&quot;&gt;&lt;B&gt;Ultimate Knife VIP sadrzi sledece:&lt;/B&gt; &lt;/font&gt;&lt;/h4&gt;&lt;/center&gt;&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; len += format(motd[len], 1500-len,&quot;&lt;center&gt;&lt;h4&gt;&lt;font color=^&quot;blue^&quot;&gt;&lt;B&gt;-----------------------&lt;/B&gt; &lt;/font&gt;&lt;/h4&gt;&lt;/center&gt;&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; len += format(motd[len], 1500-len,&quot;&lt;center&gt;&lt;h4&gt;&lt;font color=^&quot;white^&quot;&gt;&lt;B&gt;-Knife Menu&lt;/B&gt; &lt;/font&gt;&lt;/h4&gt;&lt;/center&gt;&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; len += format(motd[len], 1500-len,&quot;&lt;center&gt;&lt;h4&gt;&lt;font color=^&quot;white^&quot;&gt;&lt;B&gt;-VIP Shop&lt;/B&gt; &lt;/font&gt;&lt;/h4&gt;&lt;/center&gt;&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; len += format(motd[len], 1500-len,&quot;&lt;center&gt;&lt;h4&gt;&lt;font color=^&quot;white^&quot;&gt;&lt;B&gt;-MultiJump&lt;/B&gt; &lt;/font&gt;&lt;/h4&gt;&lt;/center&gt;&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; len += format(motd[len], 1500-len,&quot;&lt;center&gt;&lt;h4&gt;&lt;font color=^&quot;green^&quot;&gt;&lt;B&gt;-Prefix [VIP]&lt;/B&gt; &lt;/font&gt;&lt;/h4&gt;&lt;/center&gt;&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; len += format(motd[len], 1500-len,&quot;&lt;center&gt;&lt;h4&gt;&lt;font color=^&quot;blue^&quot;&gt;&lt;B&gt;-----------------------&lt;/B&gt; &lt;/font&gt;&lt;/h4&gt;&lt;/center&gt;&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; len += format(motd[len], 1500-len,&quot;&lt;center&gt;&lt;h4&gt;&lt;font color=^&quot;red^&quot;&gt;&lt;B&gt;Za kupovinu se javite vlasniku.&lt;/B&gt; &lt;/font&gt;&lt;/h4&gt;&lt;/center&gt;&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; len += format(motd[len], 1500-len,&quot;&lt;center&gt;&lt;h4&gt;&lt;font color=^&quot;blue^&quot;&gt;&lt;B&gt;-----------------------&lt;/B&gt; &lt;/font&gt;&lt;/h4&gt;&lt;/center&gt;&quot;)&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; show_motd(id, motd, &quot;PKV by: PrInCe &amp; DecaK&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; return 0<br />}<br />&nbsp;<br />&nbsp;<br />public client_PreThink(id)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; if(!is_user_alive(id)) return PLUGIN_CONTINUE<br />&nbsp; &nbsp; &nbsp; &nbsp; if(get_cvar_num(&quot;amx_mjadminonly&quot;) &amp;&amp; (!access(id,ADMINACCESS))) return PLUGIN_CONTINUE<br />&nbsp; &nbsp; &nbsp; &nbsp; new nbut = get_user_button(id)<br />&nbsp; &nbsp; &nbsp; &nbsp; new obut = get_user_oldbutton(id)<br />&nbsp; &nbsp; &nbsp; &nbsp; if((nbut &amp; IN_JUMP) &amp;&amp; !(get_entity_flags(id) &amp; FL_ONGROUND) &amp;&amp; !(obut &amp; IN_JUMP))<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(jumpnum[id] &lt; get_cvar_num(&quot;amx_maxjumps&quot;))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dojump[id] = true<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jumpnum[id]++<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_CONTINUE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; if((nbut &amp; IN_JUMP) &amp;&amp; (get_entity_flags(id) &amp; FL_ONGROUND))<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jumpnum[id] = 0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_CONTINUE<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_CONTINUE<br />}<br />&nbsp;<br />public client_PostThink(id)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; if(!is_user_alive(id)) return PLUGIN_CONTINUE<br />&nbsp; &nbsp; &nbsp; &nbsp; if(get_cvar_num(&quot;amx_mjadminonly&quot;) &amp;&amp; (!access(id,ADMINACCESS))) return PLUGIN_CONTINUE<br />&nbsp; &nbsp; &nbsp; &nbsp; if(dojump[id] == true)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Float:velocity[3]&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; entity_get_vector(id,EV_VEC_velocity,velocity)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; velocity[2] = random_float(265.0,285.0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; entity_set_vector(id,EV_VEC_velocity,velocity)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dojump[id] = false<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_CONTINUE<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; return PLUGIN_CONTINUE<br />}&nbsp; &nbsp; &nbsp; <br />&nbsp;<br />&nbsp;<br />public obavestenje()<br />{<br />&nbsp; ColorChat(0, TEAM_COLOR, &quot;^4[VIP]^3 Ovaj server koristi Ultimate Knife VIP by: ^4PrInCe &amp; DecaK^1&quot;)<br />&nbsp; ColorChat(0, TEAM_COLOR, &quot;^4[VIP]^3 Da pogledas informacije o vip-u, say: /vipinfo.^1&quot;)<br />&nbsp; ColorChat(0, TEAM_COLOR, &quot;^4[VIP]^3 Da otvoris knife menu, say: /kmenu ili /knifemenu.^1&quot;)<br />}</code><hr />
</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...02"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...1476716035">Get Source</a> (vipshop.sma - 23.3 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