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

[ZP] New GiveAP 'with menu' (Originale By Arkshine)


  • 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 14.07.2016 16:07

<div><b><div align="center">This is a new simple addition to zp_giveap originale posted by , <a href="https://forums.allie...ber.php?u=7779"target="_blank">Arkshine</a> </div></b><br /><div align="center">This plugin its easly makes you choose a player from the menu given By typing : <b>zp_giveap</b> in console</div><br /><b><font color="Red">Originale post</font></b><br /><b><i><a href="https://forums.alliedmods.net/showpost.php?p=687117&amp;postcount=2" target="_blank">HERE</a></i></b><br /><br /><b><font size="5"><font face="Franklin Gothic Medium">Script :</font></font></b><br /><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">#include&nbsp;&lt;amxmodx&gt;&nbsp;<br />#include&nbsp;&lt;amxmisc&gt;<br />#include&nbsp;&lt;zombieplague&gt;<br /><br /><br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">players_menu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">players</span><span style="color: #007700">[</span><span style="color: #0000BB">32</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">num</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">i<br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">accessmenu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">iName</span><span style="color: #007700">[</span><span style="color: #0000BB">64</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">callback<br /><br /></span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">plugin_init&nbsp;</span><span style="color: #007700">()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_plugin&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"ZP:&nbsp;Give&nbsp;Ammo"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"1.0.0"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"Arkshine"&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_clcmd&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"zp_giveap"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"CmdGiveAP"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ADMIN_RCON</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"-&nbsp;Players&nbsp;Menu"&nbsp;</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_clcmd&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"amx_giveap"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"CmdGiveAP"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ADMIN_RCON</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"-&nbsp;Players&nbsp;Menu"&nbsp;</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">register_clcmd&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"Given"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"transfer_money"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ADMIN_RCON</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"-&nbsp;Given&nbsp;&lt;name&gt;&nbsp;&lt;amount&gt;&nbsp;:&nbsp;Give&nbsp;Ammo&nbsp;Packs"&nbsp;</span><span style="color: #007700">)<br />}<br /><br />public&nbsp;</span><span style="color: #0000BB">CmdGiveAP&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">level</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">cid&nbsp;</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!</span><span style="color: #0000BB">cmd_access&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">level</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">cid</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">3&nbsp;</span><span style="color: #007700">)&nbsp;)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_players</span><span style="color: #007700">(</span><span style="color: #0000BB">players</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">num</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"h"</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">tempname</span><span style="color: #007700">[</span><span style="color: #0000BB">32</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">info</span><span style="color: #007700">[</span><span style="color: #0000BB">10</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">tempid<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;players_menu&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">menu_create</span><span style="color: #007700">(</span><span style="color: #DD0000">"yChoose&nbsp;A&nbsp;player&nbsp;to&nbsp;Give&nbsp;r[Packs]"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"players_menu_handler"</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;for(</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">num</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">++)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">tempid&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">players&nbsp;</span><span style="color: #007700">[&nbsp;</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">get_user_name</span><span style="color: #007700">(</span><span style="color: #0000BB">tempid</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">tempname</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">33</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">num_to_str</span><span style="color: #007700">(</span><span style="color: #0000BB">tempid</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">info</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">9</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_additem</span><span style="color: #007700">(</span><span style="color: #0000BB">players_menu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">tempname</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">info</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_setprop</span><span style="color: #007700">(</span><span style="color: #0000BB">players_menu</span><span style="color: #007700">,</span><span style="color: #0000BB">MPROP_EXITNAME</span><span style="color: #007700">,</span><span style="color: #DD0000">"Exit"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_setprop</span><span style="color: #007700">(</span><span style="color: #0000BB">players_menu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">MPROP_EXIT</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">MEXIT_ALL</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_display</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">players_menu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_CONTINUE<br /></span><span style="color: #007700">}<br /><br />public&nbsp;</span><span style="color: #0000BB">players_menu_handler</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">players_menu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">item</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">item&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">MENU_EXIT</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_destroy</span><span style="color: #007700">(</span><span style="color: #0000BB">players_menu</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">data</span><span style="color: #007700">[</span><span style="color: #0000BB">6</span><span style="color: #007700">]<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">menu_item_getinfo</span><span style="color: #007700">(</span><span style="color: #0000BB">players_menu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">item</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">accessmenu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">data</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">charsmax</span><span style="color: #007700">(</span><span style="color: #0000BB">data</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">iName</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">charsmax</span><span style="color: #007700">(</span><span style="color: #0000BB">iName</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">callback</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">tempid&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">str_to_num&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">data</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">client_cmd</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"messagemode&nbsp;^"</span><span style="color: #0000BB">Given&nbsp;</span><span style="color: #007700">%</span><span style="color: #0000BB">i</span><span style="color: #007700">^</span><span style="color: #DD0000">""</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">tempid</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_CONTINUE<br /></span><span style="color: #007700">}<br /><br />public&nbsp;</span><span style="color: #0000BB">transfer_money</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">level</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">cid&nbsp;</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!</span><span style="color: #0000BB">cmd_access&nbsp;</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">level</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">cid</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">3&nbsp;</span><span style="color: #007700">)&nbsp;)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">param</span><span style="color: #007700">[</span><span style="color: #0000BB">6</span><span style="color: #007700">]<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">read_argv</span><span style="color: #007700">(</span><span style="color: #0000BB">2</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">param</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">charsmax</span><span style="color: #007700">(</span><span style="color: #0000BB">param</span><span style="color: #007700">))<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(new&nbsp;</span><span style="color: #0000BB">x</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">x&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">param</span><span style="color: #007700">);&nbsp;</span><span style="color: #0000BB">x</span><span style="color: #007700">++)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(!</span><span style="color: #0000BB">isdigit</span><span style="color: #007700">(</span><span style="color: #0000BB">param</span><span style="color: #007700">[</span><span style="color: #0000BB">x</span><span style="color: #007700">]))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">amount&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">str_to_num</span><span style="color: #007700">(</span><span style="color: #0000BB">param</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">read_argv</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">param</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">charsmax</span><span style="color: #007700">(</span><span style="color: #0000BB">param</span><span style="color: #007700">))<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">player&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">str_to_num</span><span style="color: #007700">(</span><span style="color: #0000BB">param</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">player_money&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">zp_get_user_ammo_packs&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">player</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">zp_set_user_ammo_packs</span><span style="color: #007700">(</span><span style="color: #0000BB">player</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">player_money&nbsp;</span><span style="color: #007700">+&nbsp;</span><span style="color: #0000BB">amount</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">PLUGIN_HANDLED<br /></span><span style="color: #007700">}<br /></span><span style="color: #FF8000">//&nbsp;Colour&nbsp;Chat<br /></span><span style="color: #0000BB">stock&nbsp;client_printc</span><span style="color: #007700">(const&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;const&nbsp;</span><span style="color: #0000BB">input</span><span style="color: #007700">[],&nbsp;</span><span style="color: #0000BB">any</span><span style="color: #007700">:...)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;</span><span style="color: #0000BB">count&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">players</span><span style="color: #007700">[</span><span style="color: #0000BB">32</span><span style="color: #007700">];<br />&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;</span><span style="color: #0000BB">msg</span><span style="color: #007700">[</span><span style="color: #0000BB">191</span><span style="color: #007700">];<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">vformat</span><span style="color: #007700">(</span><span style="color: #0000BB">msg</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">190</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">input</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">replace_all</span><span style="color: #007700">(</span><span style="color: #0000BB">msg</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">190</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"!g"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^x04"</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;Green&nbsp;Color<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">replace_all</span><span style="color: #007700">(</span><span style="color: #0000BB">msg</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">190</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"!n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^x01"</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;Default&nbsp;Color<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">replace_all</span><span style="color: #007700">(</span><span style="color: #0000BB">msg</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">190</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"!t"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^x03"</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;Team&nbsp;Color<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">players</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">;&nbsp;else&nbsp;</span><span style="color: #0000BB">get_players</span><span style="color: #007700">(</span><span style="color: #0000BB">players</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">count</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"ch"</span><span style="color: #007700">);<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(new&nbsp;</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #0000BB">count</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">i</span><span style="color: #007700">++)<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">is_user_connected</span><span style="color: #007700">(</span><span style="color: #0000BB">players</span><span style="color: #007700">[</span><span style="color: #0000BB">i</span><span style="color: #007700">]))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">message_begin</span><span style="color: #007700">(</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">(</span><span style="color: #DD0000">"SayText"</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">_</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">players</span><span style="color: #007700">[</span><span style="color: #0000BB">i</span><span style="color: #007700">]);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_byte</span><span style="color: #007700">(</span><span style="color: #0000BB">players</span><span style="color: #007700">[</span><span style="color: #0000BB">i</span><span style="color: #007700">]);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">write_string</span><span style="color: #007700">(</span><span style="color: #0000BB">msg</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">message_end</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br />}<br /></span><span style="color: #FF8000">/*&nbsp;AMXX-Studio&nbsp;Notes&nbsp;-&nbsp;DO&nbsp;NOT&nbsp;MODIFY&nbsp;BELOW&nbsp;HERE<br />*{\&nbsp;rtf1\&nbsp;ansi\&nbsp;deff0{\&nbsp;fonttbl{\&nbsp;f0\&nbsp;fnil&nbsp;Tahoma;}}n\&nbsp;viewkind4\&nbsp;uc1\&nbsp;pard\&nbsp;lang1036\&nbsp;f0\&nbsp;fs16&nbsp;n\&nbsp;par&nbsp;}<br />*/&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div></div>


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








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

<a href="http://www.amxmodx.o...04"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1468508894">GetSource</a> (zp_giveap.sma - 2.8 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