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

no team flash & black flash


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

Napisano 12.10.2016 08:47

<div><div align="center"><font color="Red"><font size="7"><font face="Arial Black"><b>Black Flash<br />&amp;<br />No Team Flash<br /></b></font></font></font></div><font size="3"><font color="DarkSlateGray"><b><font face="Arial"><font face="Arial Black"><font size="7"><font color="Red"><br /></font></font></font></font></b></font></font><font size="3"><font color="DarkSlateGray"><b><font face="Arial"><font color="Red">| Description:</font><br />this plugin change color of <font color="Red">weapon_flashbang</font></font></b></font></font><b><font face="Arial"><font size="3"><font color="DarkSlateGray"> from white to black<br />and make the flash not work to your friends just for you and your enemy :grrr:.<br /></font></font></font></b><b><font face="Arial"><font size="3"><font color="DarkSlateGray"><br /> <br /><font color="Red">| Credits:</font><br />EFFx^<br />Numb<br />ConnorMcLeod<br /></font></font></font></b><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">/*<br />-------------------------------------<br />Special&nbsp;thanks&nbsp;to&nbsp;those&nbsp;who&nbsp;helped&nbsp;me<br />-------------------------------------<br /><br />EFFx^<br />Numb<br />ConnorMcLeod<br /><br />*/<br /><br />#include&nbsp;&lt;amxmodx&gt;<br />#include&nbsp;&lt;fakemeta&gt;<br />#include&nbsp;&lt;hamsandwich&gt;<br /><br /><br /></span><span style="color: #007700">const&nbsp;</span><span style="color: #0000BB">MAX_ENTSARRAYS_SIZE&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">64<br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">g_bitGonnaExplode</span><span style="color: #007700">[</span><span style="color: #0000BB">MAX_ENTSARRAYS_SIZE</span><span style="color: #007700">]<br /></span><span style="color: #FF8000">#define&nbsp;SetGrenadeExplode(%1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;g_bitGonnaExplode[%1&gt;&gt;5]&nbsp;|=&nbsp;&nbsp;1&lt;&lt;(%1&nbsp;&amp;&nbsp;31)<br />#define&nbsp;ClearGrenadeExplode(%1)&nbsp;&nbsp;&nbsp;&nbsp;g_bitGonnaExplode[%1&gt;&gt;5]&nbsp;&amp;=&nbsp;~(&nbsp;1&nbsp;&lt;&lt;&nbsp;(%1&nbsp;&amp;&nbsp;31)&nbsp;)<br />#define&nbsp;WillGrenadeExplode(%1)&nbsp;&nbsp;&nbsp;&nbsp;g_bitGonnaExplode[%1&gt;&gt;5]&nbsp;&amp;&nbsp;&nbsp;&nbsp;1&lt;&lt;(%1&nbsp;&amp;&nbsp;31)<br /></span><span style="color: #007700">const&nbsp;</span><span style="color: #0000BB">XTRA_OFS_PLAYER&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">5<br /></span><span style="color: #007700">const&nbsp;</span><span style="color: #0000BB">m_iTeam&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">114<br /></span><span style="color: #FF8000">#define&nbsp;cs_get_user_team_index(%1)&nbsp;&nbsp;&nbsp;&nbsp;get_pdata_int(%1,&nbsp;m_iTeam,&nbsp;XTRA_OFS_PLAYER)<br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">g_flCurrentGameTime</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_iCurrentFlasher</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_iCurrentFlashBang<br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">mp_friendlyfire<br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">g_iMaxPlayers<br /></span><span style="color: #FF8000">#define&nbsp;IsPlayer(%1)&nbsp;&nbsp;&nbsp;&nbsp;(&nbsp;1&nbsp;&lt;=&nbsp;%1&nbsp;&lt;=&nbsp;g_iMaxPlayers&nbsp;)<br /><br /></span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">plugin_init</span><span style="color: #007700">()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_plugin</span><span style="color: #007700">(</span><span style="color: #DD0000">"No&nbsp;team&nbsp;flash"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"3.2"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"EFFx&nbsp;/&nbsp;Numb&nbsp;/&nbsp;ConnorMcLeod&nbsp;/&nbsp;SEMO.Pa3x"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">RegisterHam</span><span style="color: #007700">(</span><span style="color: #0000BB">Ham_Think</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"grenade"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Ham__CGrenade_Think__Pre"</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_forward</span><span style="color: #007700">(</span><span style="color: #0000BB">FM_FindEntityInSphere</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Fm__FindEntityInSphere__Pre"</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mp_friendlyfire&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">get_cvar_pointer</span><span style="color: #007700">(</span><span style="color: #DD0000">"mp_friendlyfire"</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g_iMaxPlayers&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">get_maxplayers</span><span style="color: #007700">()<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_event</span><span style="color: #007700">(</span><span style="color: #DD0000">"ScreenFade"</span><span style="color: #007700">,</span><span style="color: #DD0000">"FlashedEvent"</span><span style="color: #007700">,</span><span style="color: #DD0000">"be"</span><span style="color: #007700">,</span><span style="color: #DD0000">"4=255"</span><span style="color: #007700">,</span><span style="color: #DD0000">"5=255"</span><span style="color: #007700">,</span><span style="color: #DD0000">"6=255"</span><span style="color: #007700">,</span><span style="color: #DD0000">"7&gt;199"</span><span style="color: #007700">)<br />}<br /><br />public&nbsp;</span><span style="color: #0000BB">FlashedEvent</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">iBlack<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(!(</span><span style="color: #0000BB">iBlack</span><span style="color: #007700">))<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">iBlack&nbsp;</span><span style="color: #007700">=&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">100<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">message_begin</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">MSG_ONE</span><span style="color: #007700">,</span><span style="color: #0000BB">get_user_msgid</span><span style="color: #007700">(</span><span style="color: #DD0000">"ScreenFade"</span><span style="color: #007700">),{</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">},</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_short</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">read_data</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">)&nbsp;)&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Duration<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_short</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">read_data</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">)&nbsp;)&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Hold&nbsp;time<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_short</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">read_data</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">3&nbsp;</span><span style="color: #007700">)&nbsp;)&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Fade&nbsp;type<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_byte&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Red<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_byte&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Green<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_byte&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Blue<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_byte&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">read_data</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">7&nbsp;</span><span style="color: #007700">)&nbsp;)&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Alpha<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">message_end</span><span style="color: #007700">()<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED<br /></span><span style="color: #007700">}<br /><br />public&nbsp;</span><span style="color: #0000BB">Ham__CGrenade_Think__Pre</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">iEnt&nbsp;</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">flGameTime</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">flDmgTime</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iOwner<br />&nbsp;&nbsp;&nbsp;&nbsp;flGameTime&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">get_gametime</span><span style="color: #007700">()<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">pev</span><span style="color: #007700">(</span><span style="color: #0000BB">iEnt</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">pev_dmgtime</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">flDmgTime</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;if(&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">flDmgTime&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">flGameTime<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_pdata_int</span><span style="color: #007700">(</span><span style="color: #0000BB">iEnt</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">114</span><span style="color: #007700">)&nbsp;==&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #FF8000">//&nbsp;has&nbsp;a&nbsp;bit&nbsp;when&nbsp;is&nbsp;HE&nbsp;or&nbsp;SMOKE<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;&nbsp;&nbsp;&nbsp;!(</span><span style="color: #0000BB">get_pdata_int</span><span style="color: #007700">(</span><span style="color: #0000BB">iEnt</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">96</span><span style="color: #007700">)&nbsp;&amp;&nbsp;(</span><span style="color: #0000BB">1</span><span style="color: #007700">&lt;&lt;</span><span style="color: #0000BB">8</span><span style="color: #007700">))&nbsp;</span><span style="color: #FF8000">//&nbsp;has&nbsp;this&nbsp;bit&nbsp;when&nbsp;is&nbsp;c4<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">IsPlayer</span><span style="color: #007700">(&nbsp;(</span><span style="color: #0000BB">iOwner&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">pev</span><span style="color: #007700">(</span><span style="color: #0000BB">iEnt</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">pev_owner</span><span style="color: #007700">))&nbsp;)&nbsp;&nbsp;&nbsp;&nbsp;)&nbsp;</span><span style="color: #FF8000">//&nbsp;if&nbsp;no&nbsp;owner&nbsp;grenade&nbsp;gonna&nbsp;be&nbsp;removed&nbsp;from&nbsp;world<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(&nbsp;~</span><span style="color: #0000BB">WillGrenadeExplode</span><span style="color: #007700">(</span><span style="color: #0000BB">iEnt</span><span style="color: #007700">)&nbsp;)&nbsp;</span><span style="color: #FF8000">//&nbsp;grenade&nbsp;gonna&nbsp;explode&nbsp;on&nbsp;next&nbsp;think<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SetGrenadeExplode</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">iEnt&nbsp;</span><span style="color: #007700">)<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;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">ClearGrenadeExplode</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">iEnt&nbsp;</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">g_flCurrentGameTime&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">flGameTime<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;g_iCurrentFlasher&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">iOwner<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;g_iCurrentFlashBang&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">iEnt<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /><br />public&nbsp;</span><span style="color: #0000BB">Fm__FindEntityInSphere__Pre</span><span style="color: #007700">(</span><span style="color: #0000BB">iStartEnt</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">fVecOrigin</span><span style="color: #007700">[</span><span style="color: #0000BB">3</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">flRadius</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;const&nbsp;</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">FLASHBANG_SEARCH_RADIUS&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1500.0<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if(&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">flRadius&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">FLASHBANG_SEARCH_RADIUS<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_gametime</span><span style="color: #007700">()&nbsp;==&nbsp;</span><span style="color: #0000BB">g_flCurrentGameTime&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">iStartEnt</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">fVecPlayerEyeOrigin</span><span style="color: #007700">[</span><span style="color: #0000BB">3</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">flFraction</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">friendlyfire&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">get_pcvar_num</span><span style="color: #007700">(</span><span style="color: #0000BB">mp_friendlyfire</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while(&nbsp;</span><span style="color: #0000BB">IsPlayer</span><span style="color: #007700">(&nbsp;(</span><span style="color: #0000BB">id</span><span style="color: #007700">=</span><span style="color: #0000BB">engfunc</span><span style="color: #007700">(</span><span style="color: #0000BB">EngFunc_FindEntityInSphere</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">fVecOrigin</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">flRadius</span><span style="color: #007700">))&nbsp;)&nbsp;)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(&nbsp;</span><span style="color: #0000BB">is_user_alive</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&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;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">pev</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">pev_origin</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">fVecPlayerEyeOrigin</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">fVecPlayerEyeOrigin</span><span style="color: #007700">[</span><span style="color: #0000BB">2</span><span style="color: #007700">]&nbsp;+=&nbsp;((</span><span style="color: #0000BB">pev</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">pev_flags</span><span style="color: #007700">)&nbsp;&amp;&nbsp;</span><span style="color: #0000BB">FL_DUCKING</span><span style="color: #007700">)&nbsp;?&nbsp;</span><span style="color: #0000BB">12.0&nbsp;</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">18.0</span><span style="color: #007700">)&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;</span><span style="color: #0000BB">engfunc</span><span style="color: #007700">(</span><span style="color: #0000BB">EngFunc_TraceLine</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">fVecOrigin</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">fVecPlayerEyeOrigin</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">DONT_IGNORE_MONSTERS</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">g_iCurrentFlashBang</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&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;</span><span style="color: #0000BB">get_tr2</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">TR_flFraction</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">flFraction</span><span style="color: #007700">)&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;if(&nbsp;</span><span style="color: #0000BB">flFraction&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">1.0&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;</span><span style="color: #0000BB">get_tr2</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">TR_pHit</span><span style="color: #007700">)&nbsp;==&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)<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;</span><span style="color: #0000BB">engfunc</span><span style="color: #007700">(</span><span style="color: #0000BB">EngFunc_TraceLine</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">fVecPlayerEyeOrigin</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">fVecOrigin</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">DONT_IGNORE_MONSTERS</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_tr2</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">TR_flFraction</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">flFraction</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">flFraction&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">1.0<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&amp;&amp;&nbsp;&nbsp;&nbsp;&nbsp;(&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">friendlyfire<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;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">||&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">g_iCurrentFlasher<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">||&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">cs_get_user_team_index</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;!=&nbsp;</span><span style="color: #0000BB">cs_get_user_team_index</span><span style="color: #007700">(</span><span style="color: #0000BB">g_iCurrentFlasher</span><span style="color: #007700">)&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;{<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;</span><span style="color: #0000BB">forward_return</span><span style="color: #007700">(</span><span style="color: #0000BB">FMV_CELL</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">)<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;return&nbsp;</span><span style="color: #0000BB">FMRES_SUPERCEDE<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}<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;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">forward_return</span><span style="color: #007700">(</span><span style="color: #0000BB">FMV_CELL</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">FMRES_SUPERCEDE<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">FMRES_IGNORED<br /></span><span style="color: #007700">}&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...04"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1476258404">GetSource</a> (NTF.sma - 3.7 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