Skocz do zawartości

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

Owner connected info


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

Napisano 26.08.2016 15:06

<div><div align="center"><font size="6"><b><font color="Lime">Owner Connected</font></b></font><br /><font size="4"><b><font color="Red">Author: N3vEr! MinD! D-W</font></b></font></div><br /><br /><font size="4"><font color="RoyalBlue">This plugin is made by me, if owner ( player with access ADMIN_RCON ) connects to server, it shows this dhudmessage to them &quot;Welcome Owner&quot;.<br /><br />And 2-nd it shows all players this message on chat bar &quot;Owner has connected&quot;.</font></font><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">/* owner_connected plugin made by N3vEr! MinD! D-W */<br /><br />#include &lt;amxmodx&gt;<br />#include &lt;amxmisc&gt;<br />#include &lt;dhudmessage&gt;<br /><br />#define PLUGIN &quot;owner_connected&quot;<br />#define VERSION &quot;1.0&quot;<br />#define AUTHOR &quot;N3vEr! MinD! D-W&quot;<br /><br /><br />plugin_init() {<br />&nbsp; &nbsp; &nbsp; &nbsp; register_plugin(owner_connected, 1.0, N3vEr! MinD! D-W)<br />}<br /><br />public client_putinserver(id)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; if(is_user_bot(id)) return<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; set_task(5.0, &quot;adminHUD&quot;, id)<br />&nbsp; &nbsp; &nbsp; &nbsp; set_task(5.0, &quot;playerHUD&quot;, id)<br />}<br /><br />public adminHUD(id)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; if (get_user_flags &amp;&amp; ADMIN_RCON(id))<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set_dhudmessage(0, 255, 0, 0.28.0, 0.13, 0, 6.0, 12.0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; show_dhudmessage(id, &quot;Welcome Owner!&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}<br /><br />public playerHUD(id)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; if (is_user_connected(id))<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print_chat(&quot;Owner has connected!&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}</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...69"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1472220174">GetSource</a> (Owner_Connected.sma - 889 Bytes)

</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