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

OciXCrom's Admin Chat


  • 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 29.09.2015 19:58

<div><font face="Comic Sans MS"><b><font size="6"><div align="center"><font color="#FF0000">&lt;</font> <font color="#0000BF"> OciXCrom's Admin Chat</font> <font color="#FF0000">&gt;</font></div></font></b><br /><div align="center"><font color="#FF0000"><b>A new and improved version of the default admin chat plugin. The plugin is fully rewritten and adds some new commands and options and simplified ways for using the old and new ones.</b></font></div><br /><b><font size="6"><u><font color="#0000BF">Pros and Cons:</font></u></font></b><br /><br /><ul><li><b><font color="blue">Pros</font></b>:<ul><li>Colored messages.</li>
<li>Ability to modify every single message.</li>
<li>Shortcuts for a more simple usage of the commands.</li>
<li>A console command for the admin chat (say_team @).</li>
<li>Console commands for all different HUD positions (say @/@@/@@@).</li>
<li>Ability to send a message on the right side of the screen.</li>
<li>Ability to type in different colors.</li>
<li>Admins can read other players' private messages.</li>
<li>Added a sound when a player receives a private message.</li>
<li>Ability to send DHUD messages.</li>
<li>Ability to hide the player's nickname in certain messages.</li>
</ul></li>
<li><b><font color="red">Cons</font></b>: none!</li>
</ul><br /><br /><b><font size="6"><u><font color="#0000BF">Commands list:</font></u></font></b><br /><br /><ul><li><b><font color="red">amx_say</font> <font color="#0080FF">&lt;message&gt;</font></b> - <i>(All Chat) Sends a message to all players.</i><ul><li><b>Shortcut</b>: say #&lt;message&gt;</li>
<li><b>Default flag</b>: &quot;i&quot;</li>
</ul></li>
<li><b><font color="red">amx_asay</font> <font color="#0080FF">&lt;message&gt;</font></b> - <i>(Admin Chat) Sends a message to all admins. The prefix depends on your admin level - admins get (ADMIN), VIPs (any flag) get (VIP) and normal players get a (PLAYER) prefix.</i><ul><li><b>Shortcut</b>: say_team @&lt;message&gt;</li>
<li><b>Default flag</b>: all players can use the command, but only the ones with flag &quot;e&quot; can read the messages</li>
</ul></li>
<li><b><font color="red">amx_chat</font> <font color="#0080FF">&lt;message&gt;</font></b> - <i>(VIP Chat) Sends a message to all VIP users..</i><ul><li><b>Shortcut</b>: say_team !&lt;message&gt;</li>
<li><b>Default flag</b>: &quot;i&quot;</li>
</ul></li>
<li><b><font color="red">amx_psay</font> <font color="#0080FF">&lt;player&gt; &lt;message&gt;</font></b> - <i>(Private Message) Sends a private message to a player. The player also hears a sound, so he can pay attention to the received message.</i><ul><li><b>Shortcut</b>: say_team #&lt;player&gt; &lt;message&gt;</li>
<li><b>Default flag</b>: players with flag &quot;i&quot; have access to the command, and players with flag &quot;d&quot; can read other players' messages</li>
</ul></li>
<li><b><font color="red">amx_tsay</font> <font color="#0080FF">&lt;color&gt; &lt;message&gt;</font></b> - <i>(Left HUD) Sends a HUD message on the left side of the screen.</i><ul><li><b>Shortcut</b>: say_team @&lt;color&gt; &lt;message&gt;</li>
<li><b>Default flag</b>: &quot;i&quot;</li>
</ul></li>
<li><b><font color="red">amx_csay</font> <font color="#0080FF">&lt;color&gt; &lt;message&gt;</font></b> - <i>(Center HUD) Sends a HUD message on top of the screen.</i><ul><li><b>Shortcut</b>: say_team @@&lt;color&gt; &lt;message&gt;</li>
<li><b>Default flag</b>: &quot;i&quot;</li>
</ul></li>
<li><b><font color="red">amx_bsay</font> <font color="#0080FF">&lt;color&gt; &lt;message&gt;</font></b> - <i>(Bottom HUD) Sends a HUD message on the bottom of the screen..</i><ul><li><b>Shortcut</b>: say_team @@@&lt;color&gt; &lt;message&gt;</li>
<li><b>Default flag</b>: &quot;i&quot;</li>
</ul></li>
<li><b><font color="red">amx_rsay</font> <font color="#0080FF">&lt;color&gt; &lt;message&gt;</font></b> - <i>(Right HUD) Sends a HUD message on the right side of the screen..</i><ul><li><b>Shortcut</b>: say_team @@@@&lt;color&gt; &lt;message&gt;</li>
<li><b>Default flag</b>: &quot;i&quot;</li>
</ul></li>
<li><b><font color="red">amx_tsay2</font> <font color="#0080FF">&lt;color&gt; &lt;message&gt;</font></b> - <i>(Left DHUD) Sends a DHUD message on the left side of the screen.</i><ul><li><b>Shortcut</b>: say_team &amp;&lt;color&gt; &lt;message&gt;</li>
<li><b>Default flag</b>: &quot;l&quot;</li>
</ul></li>
<li><b><font color="red">amx_csay2</font> <font color="#0080FF">&lt;color&gt; &lt;message&gt;</font></b> - <i>(Center DHUD) Sends a DHUD message on top of the screen.</i><ul><li><b>Shortcut</b>: say_team &amp;&amp;&lt;color&gt; &lt;message&gt;</li>
<li><b>Default flag</b>: &quot;l&quot;</li>
</ul></li>
<li><b><font color="red">amx_bsay2</font> <font color="#0080FF">&lt;color&gt; &lt;message&gt;</font></b> - <i>(Bottom DHUD) Sends a DHUD message on the bottom of the screen.</i><ul><li><b>Shortcut</b>: say_team &amp;&amp;&amp;&lt;color&gt; &lt;message&gt;</li>
<li><b>Default flag</b>: &quot;l&quot;</li>
</ul></li>
<li><b><font color="red">amx_rsay2</font> <font color="#0080FF">&lt;color&gt; &lt;message&gt;</font></b> - <i>(Right DHUD) Sends a DHUD message on the right side of the screen.</i><ul><li><b>Shortcut</b>: say_team &amp;&amp;&amp;&amp;&lt;color&gt; &lt;message&gt;</li>
<li><b>Default flag</b>: &quot;l&quot;</li>
</ul> </li>
</ul><br /><br /><b><font size="6"><u><font color="#0000BF">List of colors for HUD/DHUD messages:</font></u></font></b><br /><br /><b><ul><li>white</li>
<li><font color="red">red</font></li>
<li><font color="green">green</font></li>
<li><font color="blue">blue</font></li>
<li><font color="yellow">yellow</font></li>
<li><font color="magenta">magenta</font></li>
<li><font color="cyan">cyan</font></li>
<li><font color="orange">orange</font></li>
<li><font color="lightblue">ocean</font></li>
<li><font color="brown">maroon</font></li>
</ul><br /><br />When using a shortcut command, you need to enter only the first letter of the color. For example: say @r hello - red.</b><br /><br /><b><font size="6"><u><font color="#0000BF">Images:</font></u></font></b><br /><br /><img src="http://i.imgur.com/1kyCVVm.jpg"border="0" alt="" /><br /><img src="http://i.imgur.com/eVifyNZ.jpg" border="0" alt="" /><br /><img src="http://i.imgur.com/kLVNyPr.jpg" border="0" alt="" /><br /><img src="http://i.imgur.com/x7jivXI.jpg" border="0" alt="" /><br /><br /><b><font size="6"><u><font color="#0000BF">How to modify a message:</font></u></font></b><br /><br />To change a message, you need to open the .sma file and find <b>new const g_Messages</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: #007700">new&nbsp;const&nbsp;</span><span style="color: #0000BB">g_Messages</span><span style="color: #007700">[][]&nbsp;=&nbsp;{
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"!g(ALL)&nbsp;!t%name%&nbsp;!n:&nbsp;!g%message%"</span><span style="color: #007700">,&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: #FF8000">/*&nbsp;amx_say&nbsp;--&nbsp;Sends&nbsp;a&nbsp;message&nbsp;to&nbsp;all&nbsp;players&nbsp;*/
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"!g(%level%!g)&nbsp;%name%&nbsp;!t:&nbsp;!g%message%"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;amx_asay&nbsp;--&nbsp;Sends&nbsp;a&nbsp;message&nbsp;to&nbsp;all&nbsp;admins&nbsp;*/
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"!g(VIP&nbsp;CHAT)&nbsp;!t%name%&nbsp;!n:&nbsp;!t%message%"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;amx_chat&nbsp;--&nbsp;Send&nbsp;a&nbsp;message&nbsp;to&nbsp;VIP&nbsp;users&nbsp;*/
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"!t(!g%name%!t&nbsp;-&gt;&nbsp;!g%name2%!t)&nbsp;!n%message%"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;amx_psay&nbsp;--&nbsp;Sends&nbsp;a&nbsp;private&nbsp;message&nbsp;to&nbsp;a&nbsp;player&nbsp;*/
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"%name%&nbsp;:&nbsp;%message%"&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;amx_&lt;letter&gt;say(2)&nbsp;--&nbsp;Sends&nbsp;a&nbsp;(D)HUD&nbsp;message&nbsp;to&nbsp;all&nbsp;players&nbsp;*/
<br /></span><span style="color: #007700">}&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>Use <b><font color="#008000">!g for green</font></b>, <b>!<font color="#0000FF">t for a team</font> <font color="#FF0000">colored message</font></b> and <b><font color="#FFBF00">!n for default color</font></b>. You can use %name%, %name2%, %level% and %message% to replace the relevant information.<br /><br /><b><font size="6"><u><font color="#0000BF">Anonymous Mode:</font></u></font></b><br /><br /><b>Anonymous Mode</b> hides the player's nickname in certain messages. The option can be activated by changing the cvar <b>crxchat_anonymous &quot;1&quot;</b>. The messages for this mode can be changed from <b>g_AnonymousMessages</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: #007700">new&nbsp;const&nbsp;</span><span style="color: #0000BB">g_AnonymousMessages</span><span style="color: #007700">[][]&nbsp;=&nbsp;{
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"!g(ALL)&nbsp;!n:&nbsp;!g%message%"</span><span style="color: #007700">,&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;amx_say&nbsp;--&nbsp;Sends&nbsp;a&nbsp;message&nbsp;to&nbsp;all&nbsp;players&nbsp;*/
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"!g(%level%!g)&nbsp;%name%&nbsp;!t:&nbsp;!g%message%"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;amx_asay&nbsp;--&nbsp;Sends&nbsp;a&nbsp;message&nbsp;to&nbsp;all&nbsp;admins&nbsp;*/
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"!g(VIP&nbsp;CHAT)&nbsp;!t%name%&nbsp;!n:&nbsp;!t%message%"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;amx_chat&nbsp;--&nbsp;Send&nbsp;a&nbsp;message&nbsp;to&nbsp;VIP&nbsp;users&nbsp;*/
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"!t(!g%name%!t&nbsp;-&gt;&nbsp;!g%name2%!t)&nbsp;!n%message%"</span><span style="color: #007700">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;amx_psay&nbsp;--&nbsp;Sends&nbsp;a&nbsp;private&nbsp;message&nbsp;to&nbsp;a&nbsp;player&nbsp;*/
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"%message%"&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;amx_&lt;letter&gt;say(2)&nbsp;--&nbsp;Sends&nbsp;a&nbsp;(D)HUD&nbsp;message&nbsp;to&nbsp;all&nbsp;players&nbsp;*/
<br /></span><span style="color: #007700">}&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>You can change the messages in the same way as shown before.<br /><br /><b><font size="6"><u><font color="#0000BF">How to change flags:</font></u></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">#define&nbsp;FLAG_ADMIN&nbsp;ADMIN_SLAY&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;Flag&nbsp;for&nbsp;"ADMIN"&nbsp;usage&nbsp;*/
<br />#define&nbsp;FLAG_PSAY&nbsp;ADMIN_BAN&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;Players&nbsp;with&nbsp;this&nbsp;flag&nbsp;can&nbsp;read&nbsp;others&nbsp;players'&nbsp;private&nbsp;messages&nbsp;*/
<br />#define&nbsp;FLAG_READ&nbsp;ADMIN_SLAY&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;Players&nbsp;with&nbsp;this&nbsp;flag&nbsp;can&nbsp;see&nbsp;the&nbsp;admin&nbsp;chat&nbsp;*/
<br />#define&nbsp;FLAG_VIPCHAT&nbsp;ADMIN_CHAT&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;&nbsp;/*&nbsp;Players&nbsp;with&nbsp;this&nbsp;flag&nbsp;can&nbsp;use&nbsp;and&nbsp;read&nbsp;VIP&nbsp;chat&nbsp;messages&nbsp;*/&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>The other flags can be changed in the function itself, which registers the command. Search for <b>register_concmd</b>.<br /><br /><b><font size="6"><u><font color="#0000BF">IMPORTANT:</font></u></font></b><br /><br /><ul><li>After every change made in the .sma file, you need to compile the plugin locally and replace the plugin with the new .amxx file.</li>
<li>If you compile the plugin with AMXX 1.8.3, you need to remove <b>#include &lt;dhudmessage&gt;</b> from the code.</li>
</ul></font></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...76"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1443552935">GetSource</a> (adminchat.sma - 14.6 KB)

</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/inc.gif"alt="File Type: inc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...message.inc</a>(3.4 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