<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 </span><span style="color: #FF8000">//version cvar, dont touch<br /></span><span style="color: #0000BB">sm_brsc_enabled 1 </span><span style="color: #FF8000">//enables/disables this plugin<br /></span><span style="color: #0000BB">sm_brsc_type 1 </span><span style="color: #FF8000">//Who gets kicked out: 1 - Highest ping player, 2 - Longest connection time player, 3 - Random player<br /></span><span style="color: #0000BB">sm_brsc_reason </span><span style="color: #DD0000">"Kicked to make room for an admin" </span><span style="color: #FF8000">//Reason used when kicking players
<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ł
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

[ANY] Basic Reserved Slots using Connect (11.08.2016)
Temat rozp. Adminek AMXX.PL, 11.08.2016 21:33
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych