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

Become Admin


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

Napisano 24.01.2017 12:01

<div><div align="center"><b><font size="4">Version: 1.0</font></b><br /><b><font size="4">Author: hackera457</font></b></div><br /><b><font size="4">Description</font></b><br /><br />The plugin makes it so that in the performance of certain conditions allows you to become an admin for some time. After that time expires, the admin rights are automatically deleted. The plugin is similar to Become VIP, but in a completely different way. When you write a command in the chat will be open a menu where you have 3 points. These are the conditions that you must meet. If you meet the conditions will be written after the condition &quot;[CHECKED]&quot; in red and in the performance of the conditions, you will receive the four option, which as you press Add. If you already have an admin won't be able to use the command.<br />Conditions that must be met are:<ul><li><b>You haven't banned before</b></li>
</ul><ul><li><b>You have a certain played time in the server</b></li>
</ul><ul><li><b>To having a certain number of kills</b></li>
</ul><br />There are two version. One - loading bans from <b>listip.cfg</b>, and second version - works with <b>AMX BANS</b>. The bans check is turned off by default, but you can turn it on by editing the sma and compile it plugin. Flags to be given the certain played time; (in minutes) the required number of kills-set by cvar so you don't have to make any edits. <br />By default, the duration of the admin rights is 30 days (1 month), but you can change it by sma. <br /><br /><b><font size="4">Cvars</font></b><ul><li><b>becomeadmin_req_playtime</b> (Default: 1500) -The required played time in minutes</li>
</ul><ul><li><b>becomeadmin_req_kills</b> (Default: 50) - The required kills</li>
</ul><ul><li><b>becomeadmin_admin_flags</b> (Default: abcdeijo) - Admin flags that will be given to the player</li>
</ul><br /><b><font size="4">Required moduls</font></b><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;
<br />#include&nbsp;&lt;amxmisc&gt;
<br />#include&nbsp;&lt;fvault&gt;
<br />#include&nbsp;&lt;colorchat&gt;&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>For AMX BANS Version you must have<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;sqlx&gt;&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><b><font size="4">Commands in chat</font></b><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">/</span><span style="color: #0000BB">ba</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ba&nbsp;
<br /></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><b><font size="4">Additional settings:</font></b><br />By default, the ban check has been stopped. If you want to start it, you need to change in the sma <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;CHECK_USER_BANNED&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>to<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;CHECK_USER_BANNED&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>If you want to change the time when admin rights expired you must change this line:<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;ADMIN_EXPIRED&nbsp;2592000&nbsp;/*30&nbsp;days*/&nbsp;/*Time&nbsp;in&nbsp;seconds*/&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>The time must be in seconds!<br /><br /><b><font size="4">Servers using this plugin:</font></b><br /><a href="http://www.gametrack...rt=&#38;order="target="_blank">CLICK HERE</a><br /><br /><b><font size="4">In next version:</font></b><ul><li>Multilanguage System</li>
<li>Added Current youser criteris in menu</li>
<li>Some optimizations</li>
</ul></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...05"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1485255544">GetSource</a> (hackera457_becomeadmin.sma - 8.4 KB)

</td>
</tr><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...07"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1485255557">GetSource</a> (hackera457_becomeadmin_amxbans.sma - 9.3 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