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

Auto Full Server Spectator Kick and AFK Management


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

Napisano 10.07.2016 05:47

<div>I recommend you edit the source code and recompile to your liking, the settings are optimal and has been tested on aogamers.org servers.<br /> <br />/* AMX Mod X<br /> *<br /> * Full Server Spec Kicker and AFK management moded by [AoG] booya @ aogamers.org version 1.0<br /> * <br /> * This script will kick spectators only when the server is full and will only be triggered after the server player slot max threshold has been reached.<br /> * If a user is recording a demo, they would have type the command &quot;/mydemo&quot; while in spectate mode to extend their time period before being kicked.<br /> * A WARNING message will be sent to the user explaining the same.<br /> *<br /> * !!! Only 4 commands/settings for this script are &quot;amx_speckick&quot; and &quot;amx_speckickafk&quot; toggled from console.<br /> * The 3rd setting is to set the AFK time &quot;mp_afktime &lt;value&gt;&quot; not less than 30. And you could also set &quot;mp_afktime &lt;value&gt;&quot; to change in amxx.cfg.<br /> * The last setting is &quot;mp_afkkick&quot; in which if not hard-coded to be disabled can be added it to amxx.cfg and make it 0/off or 1/on and this command<br /> * can be set from console!<br /> * Users with the ADMIN_KICK flag will be able to toggle these options.<br /> *<br /> * By default the extended time period after typing &quot;/mydemo&quot; command while in spectator mode is envoked for 2 minutes. After 2 minutes another warning <br /> * message will be sent to the spectator if the server is still full and they can again extend their spectator auto-kick time period before the default <br /> * 30 seconds(FINALWARNING) or the 60 seconds default(FINALOVERRIDE). More information on FINALWARNING and FINALOVERRIDE is explained below.<br /> *<br /> * Things to know:<br /> *<br /> * 1. Immunity, kick, slay or ban flags are required for admins and chosen users so that they will not be kicked or warned! Usually those flags are &quot;cdae&quot;!<br /> * Defining IMMUNE_SPEC_ACCESS below to 0 sets immunity for admins off.<br /> *<br /> * ADMIN_IMMUNITY flag &quot;a&quot;<br /> * ADMIN_KICK flag &quot;c&quot;<br /> * ADMIN_BAN flag &quot;d&quot;<br /> * ADMIN_SLAY flag &quot;e&quot;<br /> *<br /> * 2. Defining AFK_CHECK_INTERVAL to 0 disables AFK management otherwise it is defaulted to 10 seconds.<br /> * The command to enable this in console is &quot;sv_speckickafk&quot; in which toggles the option.<br /> * <br /> * 3. Be sure to understand the setting FINALOVERRIDE and FINALWARNING as some maps even if you have a max setting of 32 player slots,<br /> * the map itself may only allow 20 users to actually play on a team and force the rest to play in spectate mode.<br /> * More information on those settings are listed below by #define FINALOVERRIDE and FINALWARNING but ideally FINALOVERRIDE gives the <br /> * user more time in spectator mode to join a team before being kicked. I have programmed a method to count spawn points on a map in which is the reason <br /> * FINALOVERRIDE setting was created. It's basically used to prevent kick flooding on a map that forces users to stay in spectate mode by giving them <br /> * more time to chose a team before being kicked.<br /> *<br /> * 4. HLTV spectators are kicked immediately on a full server and the first ones to go!<br /> * 5. Those who just join the server and are unassigned are giving an immunity time period before the warning message is sent to join into team game play.<br /> * By default users have IMMUNE_TIME_AFTER_CONNECT 45 seconds to join a team then an additional FINALWARNING/FINALOVERRIDE time.<br /> *<br /> * 6. Understand the /mydemo command, some users like to report hackers and would like to record them in spectator mode. The /mydemo command allows them<br /> * to stay in spectate mode for a max of 2 minutes to record the demo unless they envoke the /mydemo command after the time expiration in which<br /> * again extends them from being auto-kicked.<br /> */</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...ttach/amxx.gif"alt="File Type: amxx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...eckick.amxx</a>(19.5 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...14"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1468126396">GetSource</a> (fullserver_speckick.sma - 24.7 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