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

[DR] LvL System


  • 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 16.03.2015 20:23

<div><font size="6"><div align="center"><font color="red">[DR] LvL System</font></div></font><br /><font size="2"><div align="center"><font color="Blue">v1.1</font></div></font><br /><div align="center"><font face="Comic Sans MS"><font size="4"><font face="Comic Sans MS"><font color="Red">by Malli Bojan</font></font></font></font></div><br />Deathrun <font size="1"><font color="Blue">FUN</font></font> plugin that at <font size="1"><font color="blue">HUD</font></font> displays some information.<br /><br /><font color="Red"><font size="1">•</font></font> <font size="1"><font color="Blue">HEALTH</font></font><br /><font color="Red"><font size="1">•</font></font> <font size="1"><font color="blue">ARMOR</font></font><br /><font color="Red"><font size="1">•</font></font> <font size="1"><font color="blue">LEVEL</font></font><br /><font color="Red"><font size="1">•</font></font> <font size="1"><font color="blue">EXPERIENCE</font></font><br /><font color="Red"><font size="1">•</font></font> <font size="1"><font color="blue">RANK</font></font><br /><br /><font color="Red">•</font> Added the <font color="Red">10</font> <font size="1"><font color="red">RANKS</font></font> with <font color="red">100</font> <font size="1"><font color="red">LEVELS</font></font>.<br /><font color="Red">•</font> It is possible to insert another <font size="1"><font color="red">RANKS</font></font> of your choice.<br /><font color="Red">•</font> Blue color severe elected, chosen at random.<br /><br /><font color="Red">•</font> Inserted the <font color="Red">Screen Fade</font>.<br /><br />For those who do not know:<br /><font color="Red">•</font> Screen Fade <font color="DarkRed">-&gt;</font> <font size="1"><font color="Red">CHANGE COLOR SCREEN AFTER KILLINGS</font></font>.<br /><br />Hud example:<br /><br /><font color="Red">•</font><font color="Navy"> [Health: 100]<br /><font color="Red">•</font> [Armor: 100]<br /><font color="Red">•</font> [Level: 2]<br /><font color="Red">•</font> [Exp: 12/20]<br /><font color="Red">•</font> [Rank: Amateur]</font><br /><br /><font size="4"><div align="center"><font color="DarkOliveGreen">-=CVARS=-</font></div></font><br /><br /><font color="red">***</font> XP &amp; LEVEL <font color="Red">***</font><br /><br /><font color="Purple">dr_xp_for_lvl</font> <font color="Red">2</font> <font color="Orange">// By default 2 -&gt; how should xp to level</font><br /><font color="purple">dr_max_level</font> <font color="Red">100</font> <font color="orange">// By default 100 -&gt; how many levels</font><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;&nbsp;amxmodx&nbsp;&gt;<br />#include&nbsp;&lt;&nbsp;nvault&nbsp;&gt;<br /><br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">33&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">3&nbsp;</span><span style="color: #007700">];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;0-&nbsp;lvl,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1-&nbsp;xp,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2-&nbsp;cin<br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">cvars</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;0-&nbsp;killxp,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1-&nbsp;max&nbsp;lvl<br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">others</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;0-&nbsp;vault,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1-&nbsp;hudmsg<br /><br /></span><span style="color: #007700">new&nbsp;const&nbsp;</span><span style="color: #0000BB">cinovi</span><span style="color: #007700">[&nbsp;][&nbsp;]&nbsp;=<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="color: #DD0000">"Beginner"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">},<br />&nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="color: #DD0000">"Amateur"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">10</span><span style="color: #007700">},<br />&nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="color: #DD0000">"Junior"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">20</span><span style="color: #007700">},<br />&nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="color: #DD0000">"Deathrun&nbsp;Runner"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">30</span><span style="color: #007700">},<br />&nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="color: #DD0000">"Deathrun&nbsp;Jumper"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">40</span><span style="color: #007700">},<br />&nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="color: #DD0000">"Deathrun&nbsp;Bhoper"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">50</span><span style="color: #007700">},<br />&nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="color: #DD0000">"Bhop&nbsp;Wizzard"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">60</span><span style="color: #007700">},<br />&nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="color: #DD0000">"Deathrun&nbsp;Invader"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">90</span><span style="color: #007700">},<br />&nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="color: #DD0000">"Deathrun&nbsp;Expert"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">100</span><span style="color: #007700">},<br />&nbsp;&nbsp;&nbsp;&nbsp;{</span><span style="color: #DD0000">"Deathrun&nbsp;Express"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">110</span><span style="color: #007700">}<br />};<br /><br />public&nbsp;</span><span style="color: #0000BB">plugin_init</span><span style="color: #007700">(&nbsp;)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_plugin</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"[DR]&nbsp;LvL&nbsp;System"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"1.1"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Malli&nbsp;Bojan"&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">others</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;</span><span style="color: #0000BB">nvault_open</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"[DR]&nbsp;LvL&nbsp;System"&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">others</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: #0000BB">CreateHudSyncObj</span><span style="color: #007700">(&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">cvars</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;</span><span style="color: #0000BB">register_cvar</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"dr_xp_for_lvl"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"2"&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">cvars</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;</span><span style="color: #0000BB">register_cvar</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"dr_max_level"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"100"&nbsp;</span><span style="color: #007700">);<br />}<br /><br />public&nbsp;</span><span style="color: #0000BB">client_death</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">napadac</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">zrtva&nbsp;</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(&nbsp;!</span><span style="color: #0000BB">is_user_connected</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">napadac&nbsp;</span><span style="color: #007700">)&nbsp;||&nbsp;(&nbsp;</span><span style="color: #0000BB">napadac&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">zrtva&nbsp;</span><span style="color: #007700">)&nbsp;||&nbsp;(&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">napadac&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">]&nbsp;==&nbsp;</span><span style="color: #0000BB">get_pcvar_num</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">cvars</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;&nbsp;&nbsp;&nbsp;&nbsp;return;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">napadac&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">]++;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">napadac&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">]&nbsp;&gt;=&nbsp;</span><span style="color: #0000BB">get_pcvar_num</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">cvars</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">]&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">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">napadac&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">]++;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">napadac&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">set_user_fade</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">napadac&nbsp;</span><span style="color: #007700">);<br />}<br /><br />public&nbsp;</span><span style="color: #0000BB">save_info</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">szData</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">256&nbsp;</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">szAuthID</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">33&nbsp;</span><span style="color: #007700">];<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">szAuthID</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">charsmax</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">szAuthID&nbsp;</span><span style="color: #007700">)&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">formatex</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">szData</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">charsmax</span><span style="color: #007700">(</span><span style="color: #0000BB">szData</span><span style="color: #007700">),&nbsp;</span><span style="color: #DD0000">"%i&nbsp;%i"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">]&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">nvault_set</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">others</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">szAuthID</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szData&nbsp;</span><span style="color: #007700">);<br />}<br /><br />public&nbsp;</span><span style="color: #0000BB">load_info</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">szData</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">256&nbsp;</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">szAuthID</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">33&nbsp;</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">szInfo</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">33&nbsp;</span><span style="color: #007700">];<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">szAuthID</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">charsmax</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">szAuthID&nbsp;</span><span style="color: #007700">)&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">nvault_get</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">others</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">szAuthID</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szData</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">charsmax</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">szData&nbsp;</span><span style="color: #007700">)&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">parse</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">szData</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">szInfo</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">charsmax</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">szInfo</span><span style="color: #007700">[&nbsp;]&nbsp;),&nbsp;</span><span style="color: #0000BB">szInfo</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">charsmax</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">szInfo</span><span style="color: #007700">[&nbsp;]&nbsp;)&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">0&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">szInfo</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">]&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">1&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">szInfo</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">]&nbsp;);<br />}<br /><br />public&nbsp;</span><span style="color: #0000BB">client_putinserver</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">set_task</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">1.0</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"ShowHud"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"b"&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">load_info</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">);<br />}<br /><br />public&nbsp;</span><span style="color: #0000BB">client_disconnect</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">save_info</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">);<br /><br />public&nbsp;</span><span style="color: #0000BB">ShowHud</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;switch(&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">0&nbsp;</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;case&nbsp;</span><span style="color: #0000BB">0..9</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">10..19</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">20..29</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">30..39</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">40..49</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">4</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">50..59</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">5</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">60..69</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">6</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">70..79</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">7</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">80..89</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">8</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">90..999</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">9</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">set_hudmessage</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">120</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">60</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">random_num</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">255&nbsp;</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">0.01</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.22&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">ShowSyncHudMsg</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">others</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">"[Health:&nbsp;%d]^n[Armor:&nbsp;%d]^n[Level:&nbsp;%d]^n[Exp:&nbsp;%d/%d]^n[Rank:&nbsp;%s]"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">get_user_health</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">get_user_armor</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">get_pcvar_num</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">cvars</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">]&nbsp;),&nbsp;</span><span style="color: #0000BB">cinovi</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">lvls</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">id&nbsp;</span><span style="color: #007700">][&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">]&nbsp;]&nbsp;);<br />}<br /><br /></span><span style="color: #0000BB">stock&nbsp;set_user_fade</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">index&nbsp;</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;<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_UNRELIABLE</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">get_user_msgid</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"ScreenFade"&nbsp;</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">_</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">index&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_short</span><span style="color: #007700">(&nbsp;(&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">&lt;&lt;&nbsp;</span><span style="color: #0000BB">12&nbsp;</span><span style="color: #007700">)&nbsp;*&nbsp;</span><span style="color: #0000BB">1&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">floatround</span><span style="color: #007700">(&nbsp;(&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">&lt;&lt;&nbsp;</span><span style="color: #0000BB">12&nbsp;</span><span style="color: #007700">)&nbsp;*&nbsp;</span><span style="color: #0000BB">0.01&nbsp;</span><span style="color: #007700">)&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_short</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">0x0000&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_byte</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_byte</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">170&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_byte</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">255&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_byte</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">150&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">message_end</span><span style="color: #007700">(&nbsp;);<br />}&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><div align="center"><font size="4"><font color="DarkOliveGreen">-=VERSION / BUGS=-</font></font></div><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">v1.1<br />&nbsp;- Reduced number of <font size="1"><font color="Red">LEVELS</font></font> and corrected a bug in the <font size="1"><font color="red">RANKS</font></font></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...92"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1426533816">GetSource</a> (DR_LvL_System.sma - 3.0 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