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

[ANY] Basic Reserved Slots using Connect (11.08.2016)


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

Napisano 11.08.2016 21:33

<div><font size="4"><b>Description:</b></font><br />This plugin provides basic reserved slots using <a href="https://forums.allie...d.php?t=162489"target="_blank">Connect</a>. I needed a simple reserved slots plugin where all slots are available to everyone, but people with reservation flag could still connect, even if the server is full(through console). So, I just modified the plugin from <a href="https://forums.alliedmods.net/showthread.php?t=72322" target="_blank">https://forums.allie...php?t=72322</a> , because it could do exactly what I wanted, but it uses a different extension. I updated the plugin so it uses Connect, new syntax, added a cvar for kick reason and a couple of optimizations. I know about H-Reserved, but its outdated and not maintained anymore.<br /><br /><font size="4"><b>Cvars:</b></font><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">sm_brsc_version&nbsp;&nbsp;</span><span style="color: #FF8000">//version&nbsp;cvar,&nbsp;dont&nbsp;touch<br /></span><span style="color: #0000BB">sm_brsc_enabled&nbsp;1&nbsp;</span><span style="color: #FF8000">//enables/disables&nbsp;this&nbsp;plugin<br /></span><span style="color: #0000BB">sm_brsc_type&nbsp;1&nbsp;</span><span style="color: #FF8000">//Who&nbsp;gets&nbsp;kicked&nbsp;out:&nbsp;1&nbsp;-&nbsp;Highest&nbsp;ping&nbsp;player,&nbsp;2&nbsp;-&nbsp;Longest&nbsp;connection&nbsp;time&nbsp;player,&nbsp;3&nbsp;-&nbsp;Random&nbsp;player<br /></span><span style="color: #0000BB">sm_brsc_reason&nbsp;</span><span style="color: #DD0000">"Kicked&nbsp;to&nbsp;make&nbsp;room&nbsp;for&nbsp;an&nbsp;admin"&nbsp;</span><span style="color: #FF8000">//Reason&nbsp;used&nbsp;when&nbsp;kicking&nbsp;players&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><font size="4"><b>Installation:</b></font><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><ol style="list-style-type: decimal"><li>Download the plugin(or the source and compile it yourself)</li>
<li>Put it in tfaddonssourcemodplugins</li>
<li>Install Connect</li>
<li>Change the map or restart the server</li>
</ol></div>
</div>
</div><br /><br /><font size="4"><b>Credits:</b></font><br />asherkin - for creating Connect<br />pRED - for the original plugin<br /><br /><font size="4"><b>Changelog:</b></font><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br />1.00 - Initial version<br /></div>
</div>
</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/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...82"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1470947485">GetSource</a> (basic_reserved_slots_using_connect.sp - 3.2 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