<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 "Welcome Owner".<br /><br />And 2-nd it shows all players this message on chat bar "Owner has connected".</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 <amxmodx><br />#include <amxmisc><br />#include <dhudmessage><br /><br />#define PLUGIN "owner_connected"<br />#define VERSION "1.0"<br />#define AUTHOR "N3vEr! MinD! D-W"<br /><br /><br />plugin_init() {<br /> register_plugin(owner_connected, 1.0, N3vEr! MinD! D-W)<br />}<br /><br />public client_putinserver(id)<br />{<br /> if(is_user_bot(id)) return<br /> <br /> set_task(5.0, "adminHUD", id)<br /> set_task(5.0, "playerHUD", id)<br />}<br /><br />public adminHUD(id)<br />{<br /> if (get_user_flags && ADMIN_RCON(id))<br /> {<br /> set_dhudmessage(0, 255, 0, 0.28.0, 0.13, 0, 6.0, 12.0)<br /> show_dhudmessage(id, "Welcome Owner!")<br /> }<br />}<br /><br />public playerHUD(id)<br />{<br /> if (is_user_connected(id))<br /> {<br /> print_chat("Owner has connected!")<br /> }<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ł
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.
|
Guest Message by DevFuse
Owner connected info
Temat rozp. Adminek AMXX.PL, 26.08.2016 15:06
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych