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] Last Human


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

Napisano 07.12.2014 14:16

<!-- BEGIN TEMPLATE: postbit_external -->
<div><div align="center"><font face="Courier New"><font size="7"><font color="SandyBrown">[BaseBuilder]Last Human</font></font></font></div><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<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">#include &lt;amxmodx&gt;<br />#include &lt;fun&gt;<br />#include &lt;hamsandwich&gt;<br />#include &lt;fakemeta&gt;<br />#include &lt;Colorchat&gt;<br /><br />#pragma tabsize 0<br /><br />new szName[33],g_speed[33]<br />/*------------------------- 2 Jump ----------------------------*/<br /><br />new g_maxJumps = 0; <br />new jumpnum[33] = 0;<br />new bool:dojump[33] = false;<br />new g_itemid_multijump;<br />new g_multijumps[33] = 0;<br /><br />/*------------------------- Unlimited clip ----------------------------*/<br />// CS Offsets<br />#if cellbits == 32<br />const OFFSET_CLIPAMMO = 51<br />#else<br />const OFFSET_CLIPAMMO = 65<br />#endif<br />const OFFSET_LINUX_WEAPONS = 4<br /><br />// Max Clip for weapons<br />new const MAXCLIP[] = { -1, 13, -1, 10, 1, 7, -1, 30, 30, 1, 30, 20, 25, 30, 35, 25, 12, 20,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10, 30, 100, 8, 30, 30, 20, 2, 7, 30, 30, -1, 50 }<br /><br />new g_has_unlimited_clip[33]<br />/*------------------------- plugin_init ----------------------------*/<br /><br />public plugin_init( )<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; register_plugin( &quot;Last Survivor&quot;, &quot;1.0&quot;, &quot;Hisoka&quot; )<br />&nbsp; &nbsp; &nbsp; &nbsp; register_event( &quot;DeathMsg&quot;, &quot;EventDeath&quot;, &quot;a&quot; )<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; register_forward(FM_PlayerPreThink, &quot;FW_PlayerPreThinkz&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; register_forward(FM_PlayerPostThink, &quot;FW_PlayerPostThinkz&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; register_message(get_user_msgid(&quot;CurWeapon&quot;), &quot;message_cur_weapon&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; register_event(&quot;CurWeapon&quot;, &quot;change_weapon&quot;, &quot;be&quot;, &quot;1=1&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; RegisterHam(Ham_Spawn, &quot;player&quot;, &quot;spawn_off&quot;, 1)<br /><br />}<br /><br />/*------------------------- Last Survivor ----------------------------*/<br /><br />public EventDeath( )<br />{<br />new Players[ 32 ]<br />new iNum<br /><br />get_players( Players, iNum, &quot;ae&quot;, &quot;CT&quot; )<br /><br />if( iNum == 1 )<br />{<br />for (new i = 0; i &lt; iNum; i++)<br />{<br />get_user_name(Players[i], szName, 32)<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />set_user_health(Players[i], 500)<br />set_user_maxspeed(Players[i], get_user_maxspeed(Players[i]) + 450)<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />g_multijumps[Players[i]] = true<br />g_has_unlimited_clip[Players[i]] = true<br />g_speed[Players[i]] = true<br /><br />ColorChat(0, GREEN, &quot;[ Base Builder ] ^1Player ^4%s ^1Is The Last Survivor With Unlimited Clip ^4!&quot;,szName)<br />}<br />}<br />}<br /><br />/*--------------------------------------------------------------*/<br /><br />public spawn_off(id)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; for (new id; id &lt;= 32; id++) g_multijumps[id] = false;<br />&nbsp; &nbsp; &nbsp; &nbsp; for (new id; id &lt;= 32; id++) g_has_unlimited_clip[id] = false;<br />}<br /><br />public change_weapon(id)<br />{<br />if(g_speed[id]) set_user_maxspeed(id, get_user_maxspeed(id) + 450)<br />}<br />/*------------------------- 2 Jump ----------------------------*/<br /><br />public FW_PlayerPreThinkz(id)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; if(!g_multijumps[id]) return PLUGIN_CONTINUE<br />&nbsp; &nbsp; &nbsp; &nbsp; new nbut = pev(id,pev_button);<br />&nbsp; &nbsp; &nbsp; &nbsp; new obut = pev(id,pev_oldbuttons);<br />&nbsp; &nbsp; &nbsp; &nbsp; if((nbut &amp; IN_JUMP) &amp;&amp; !(pev(id,pev_flags) &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; 1)<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; (pev(id,pev_flags) &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 /><br />public FW_PlayerPostThinkz(id)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; if(!g_multijumps[id]) 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];<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pev(id,pev_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; set_pev(id,pev_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; &nbsp; <br /><br /><br />public Jump(player, itemid)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; if (itemid == g_itemid_multijump){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (g_multijumps[player] &lt; g_maxJumps || !g_maxJumps){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g_multijumps[player]++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (g_maxJumps)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; client_print(player, print_center, &quot;&quot;, g_multijumps[player], g_maxJumps);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; client_print(player, print_center, &quot;&quot;, g_multijumps[player]);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; client_print(player, print_center, &quot;&quot;, g_maxJumps);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}<br /><br />/*------------------------- Unlimited clip ----------------------------*/<br /><br />public message_cur_weapon(msg_id, msg_dest, msg_entity)<br />{<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; if (!g_has_unlimited_clip[msg_entity])<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; &nbsp; if (!is_user_alive(msg_entity) || get_msg_arg_int(1) != 1)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; static weapon, clip<br />&nbsp; &nbsp; &nbsp; &nbsp; weapon = get_msg_arg_int(2) <br />&nbsp; &nbsp; &nbsp; &nbsp; clip = get_msg_arg_int(3) <br />&nbsp; &nbsp; &nbsp; &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; &nbsp; if (MAXCLIP[weapon] &gt; 2) <br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_msg_arg_int(3, get_msg_argtype(3), MAXCLIP[weapon]) <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (clip &lt; 2) <br />&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; static wname[32], weapon_ent<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get_weaponname(weapon, wname, sizeof wname - 1)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; weapon_ent = fm_find_ent_by_owners(-1, wname, msg_entity)<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; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fm_set_weapon_ammos(weapon_ent, MAXCLIP[weapon])<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}<br /><br /><br />stock fm_find_ent_by_owners(entity, const classname[], owner)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; while ((entity = engfunc(EngFunc_FindEntityByString, entity, &quot;classname&quot;, classname)) &amp;&amp; pev(entity, pev_owner) != owner) {}<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; return entity;<br />}<br /><br /><br />stock fm_set_weapon_ammos(entity, amount)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; set_pdata_int(entity, OFFSET_CLIPAMMO, amount, OFFSET_LINUX_WEAPONS);<br />}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><img src="http://im83.gulfup.com/jR1SV7.png" border="0" alt="" /><br /><br /><font size="5"><font color="Red">description</font></font><br />Last Human Has Unlimited Clip and Multi Jump<br />you can changed to zp or bb mod :wink:</div>


<br /> <div style="padding:6px">








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...attach/sma.gif" alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>

<a href="http://www.amxmodx.o...53"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...1417958155">Get Source</a> (last_human.sma - 4.6 KB)

</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>


</div>

<!-- END TEMPLATE: postbit_external -->

Wyświetl pełny artykuł




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

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