<!-- BEGIN TEMPLATE: postbit_external -->
<div><font size="6"><b><div align="center">jailController v1.0 BETA</div></b></font><br /><br /><b><font size="4"><font color="orange">Description:</font></font></b><br />I have been using many plugins for my jail server and I wanted an all-in-one plugin to handle ratios, ct bans, warden, and round muting so I decided to make this. Took me about 12 hours to write and have not tested it much so be careful until I work out all the kinks, I will keep adding features when requested.<br /><br /><b><font size="4"><font color="orange">Cvars:</font></font></b><br /><!-- BEGIN TEMPLATE: bbcode_php_printable -->
<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_jailcontroller_version </span><span style="color: #FF8000">// Prints the plugin version
<br /></span><span style="color: #0000BB">sm_jailcontroller_enabled </span><span style="color: #007700"><</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">> </span><span style="color: #FF8000">// Enables or disables the plugin
<br /></span><span style="color: #0000BB">sm_jailcontroller_advertise </span><span style="color: #007700"><</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">> </span><span style="color: #FF8000">// Support us and let people know you use our plugin
<br /></span><span style="color: #0000BB">sm_jailcontroller_warden_select </span><span style="color: #007700"><</span><span style="color: #0000BB">0</span><span style="color: #007700">/</span><span style="color: #0000BB">1</span><span style="color: #007700">> </span><span style="color: #FF8000">// How to select the warden, FIFO/Randomly
<br /></span><span style="color: #0000BB">sm_jailcontroller_warden_death </span><span style="color: #007700"><</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">> </span><span style="color: #FF8000">// How to handle a warden death, Freeday/New Warden
<br /></span><span style="color: #0000BB">sm_jailcontroller_adminflag </span><span style="color: #007700"><</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">FLAGS</span><span style="color: #007700">> </span><span style="color: #FF8000">// The admin flag for immunity and commands
<br /></span><span style="color: #0000BB">sm_jailcontroller_warden_rounds </span><span style="color: #007700"><</span><span style="color: #FF8000">#> // Maximum number of consecutive rounds for a warden
<br /></span><span style="color: #0000BB">sm_jailcontroller_warden_announce </span><span style="color: #007700"><</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">> </span><span style="color: #FF8000">// Announce when a new warden is selected
<br /></span><span style="color: #0000BB">sm_jailcontroller_warden_vote_off </span><span style="color: #007700"><</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">> </span><span style="color: #FF8000">// Allow people to votekick a warden off
<br /></span><span style="color: #0000BB">sm_jailcontroller_vote_percent </span><span style="color: #007700"><</span><span style="color: #FF8000">#> // Percentage of people needed to remove warden
<br /></span><span style="color: #0000BB">sm_jailcontroller_mute_guards </span><span style="color: #007700"><</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">> </span><span style="color: #FF8000">// Mute guards (not warden) at round start
<br /></span><span style="color: #0000BB">sm_jailcontroller_mute_time </span><span style="color: #007700"><</span><span style="color: #FF8000">#> // Number of seconds to mute guards for
<br /></span><span style="color: #0000BB">sm_jailcontroller_ratio_small </span><span style="color: #007700"><</span><span style="color: #FF8000">#> // Ratio to use when <=5 players in server
<br /></span><span style="color: #0000BB">sm_jailcontroller_ratio_medium </span><span style="color: #007700"><</span><span style="color: #FF8000">#> // Ratio to use when <=10 players in server
<br /></span><span style="color: #0000BB">sm_jailcontroller_ratio_large </span><span style="color: #007700"><</span><span style="color: #FF8000">#> // Ratio to use when <=15 players in server
<br /></span><span style="color: #0000BB">sm_jailcontroller_ratio_full </span><span style="color: #007700"><</span><span style="color: #FF8000">#> // Ratio to use when 15< players in server
<br /></span><span style="color: #0000BB">sm_jailcontroller_forcet </span><span style="color: #007700"><</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">> </span><span style="color: #FF8000">// Force players to join T
<br /></span><span style="color: #0000BB">sm_jailcontroller_show_classes </span><span style="color: #007700"><</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">> </span><span style="color: #FF8000">// Show model selection
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b><font size="4"><font color="orange">Client Commands:</font></font></b><br /><!-- BEGIN TEMPLATE: bbcode_php_printable -->
<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_warden </span><span style="color: #007700">- </span><span style="color: #0000BB">Gives warden to the player </span><span style="color: #007700">or </span><span style="color: #0000BB">adds to queue
<br />sm_retire </span><span style="color: #007700">- </span><span style="color: #0000BB">Current warden can retire
<br />sm_guard </span><span style="color: #007700">- </span><span style="color: #0000BB">Ts can request to be a guard
<br />sm_vkwarden </span><span style="color: #007700">- </span><span style="color: #0000BB">Clients can votekick a warden off
<br /></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b><font size="4"><font color="orange">Admin Commands:</font></font></b><br /><!-- BEGIN TEMPLATE: bbcode_php_printable -->
<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_clearwardens </span><span style="color: #007700">- </span><span style="color: #0000BB">Resets the warden queue
<br />sm_clearguards </span><span style="color: #007700">- </span><span style="color: #0000BB">Resets the guard queue
<br />sm_removewarden </span><span style="color: #007700">- </span><span style="color: #0000BB">Removes the current warden
<br />sm_removeguard </span><span style="color: #007700"><</span><span style="color: #0000BB">player</span><span style="color: #007700">|</span><span style="color: #FF8000">#userid> - Removes the player from the guard queue
<br /></span><span style="color: #0000BB">sm_banguard </span><span style="color: #007700"><</span><span style="color: #0000BB">player</span><span style="color: #007700">|</span><span style="color: #FF8000">#userid> - Bans the player from becoming a guard
<br /></span><span style="color: #0000BB">sm_clearguardbans </span><span style="color: #007700">- </span><span style="color: #0000BB">Resets all guard bans
<br /></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b><font size="4"><font color="orange">Install:</font></font></b><ol style="list-style-type: decimal"><li>Download the latest version of jailcontroller.smx.</li>
<li>Upload the plugin to your sourcemod/plugins/ directory.</li>
<li>Upload the translations to your sourcemod/translations/ directory.</li>
<li>Restart your server or use "sm plugins load jailcontroller" in rcon.</li>
<li>Edit the config in /cfg/sourcemod/jailcontroller.cfg.</li>
<li>Voila! You're good to go.</li>
</ol><br /><b><font size="4"><font color="orange">Bugs:</font></font></b><ul><li>None</li>
</ul><br /><b><font size="4"><font color="orange">ToDo:</font></font></b><ul><li>Test plugin further</li>
</ul><br /><b><font size="4"><font color="orange">Credits:</font></font></b><ul><li>Databomb - Used from VGUIMenu functions and used his jailbalancer plugin for inspiration.</li>
</ul><br /><b><font size="4"><font color="orange">Version Log:</font></font></b><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 /><br /><b>1.0</b><br />- Initial release.<br /></div>
</div>
</div></div>
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...s/attach/sp.gif" alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.sourcemod...?file_id=120952"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1370595720">Get Source</a> (jailcontroller.sp - 35.0 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/smx.gif" alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...38;d=1370595725">jailcontroller.smx</a> (19.5 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/txt.gif" alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...38;d=1370595732">jailcontroller.phrases.txt</a> (2.4 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>
</div>
<!-- END TEMPLATE: postbit_external -->
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
[CS:S/CS:GO] jailController (v1.0)
Temat rozp. Adminek AMXX.PL, 07.06.2013 09:29
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych