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

[CS:S/CS:GO] jailController (v1.0)


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

Napisano 07.06.2013 09:29

<!-- 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&nbsp;</span><span style="color: #FF8000">//&nbsp;Prints&nbsp;the&nbsp;plugin&nbsp;version
<br /></span><span style="color: #0000BB">sm_jailcontroller_enabled&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #FF8000">//&nbsp;Enables&nbsp;or&nbsp;disables&nbsp;the&nbsp;plugin
<br /></span><span style="color: #0000BB">sm_jailcontroller_advertise&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #FF8000">//&nbsp;Support&nbsp;us&nbsp;and&nbsp;let&nbsp;people&nbsp;know&nbsp;you&nbsp;use&nbsp;our&nbsp;plugin
<br /></span><span style="color: #0000BB">sm_jailcontroller_warden_select&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">0</span><span style="color: #007700">/</span><span style="color: #0000BB">1</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #FF8000">//&nbsp;How&nbsp;to&nbsp;select&nbsp;the&nbsp;warden,&nbsp;FIFO/Randomly
<br /></span><span style="color: #0000BB">sm_jailcontroller_warden_death&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #FF8000">//&nbsp;How&nbsp;to&nbsp;handle&nbsp;a&nbsp;warden&nbsp;death,&nbsp;Freeday/New&nbsp;Warden
<br /></span><span style="color: #0000BB">sm_jailcontroller_adminflag&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">FLAGS</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #FF8000">//&nbsp;The&nbsp;admin&nbsp;flag&nbsp;for&nbsp;immunity&nbsp;and&nbsp;commands
<br /></span><span style="color: #0000BB">sm_jailcontroller_warden_rounds&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #FF8000">#&gt;&nbsp;//&nbsp;Maximum&nbsp;number&nbsp;of&nbsp;consecutive&nbsp;rounds&nbsp;for&nbsp;a&nbsp;warden
<br /></span><span style="color: #0000BB">sm_jailcontroller_warden_announce&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #FF8000">//&nbsp;Announce&nbsp;when&nbsp;a&nbsp;new&nbsp;warden&nbsp;is&nbsp;selected
<br /></span><span style="color: #0000BB">sm_jailcontroller_warden_vote_off&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #FF8000">//&nbsp;Allow&nbsp;people&nbsp;to&nbsp;votekick&nbsp;a&nbsp;warden&nbsp;off
<br /></span><span style="color: #0000BB">sm_jailcontroller_vote_percent&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #FF8000">#&gt;&nbsp;//&nbsp;Percentage&nbsp;of&nbsp;people&nbsp;needed&nbsp;to&nbsp;remove&nbsp;warden
<br /></span><span style="color: #0000BB">sm_jailcontroller_mute_guards&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #FF8000">//&nbsp;Mute&nbsp;guards&nbsp;(not&nbsp;warden)&nbsp;at&nbsp;round&nbsp;start
<br /></span><span style="color: #0000BB">sm_jailcontroller_mute_time&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #FF8000">#&gt;&nbsp;//&nbsp;Number&nbsp;of&nbsp;seconds&nbsp;to&nbsp;mute&nbsp;guards&nbsp;for
<br /></span><span style="color: #0000BB">sm_jailcontroller_ratio_small&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #FF8000">#&gt;&nbsp;//&nbsp;Ratio&nbsp;to&nbsp;use&nbsp;when&nbsp;&lt;=5&nbsp;players&nbsp;in&nbsp;server
<br /></span><span style="color: #0000BB">sm_jailcontroller_ratio_medium&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #FF8000">#&gt;&nbsp;//&nbsp;Ratio&nbsp;to&nbsp;use&nbsp;when&nbsp;&lt;=10&nbsp;players&nbsp;in&nbsp;server
<br /></span><span style="color: #0000BB">sm_jailcontroller_ratio_large&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #FF8000">#&gt;&nbsp;//&nbsp;Ratio&nbsp;to&nbsp;use&nbsp;when&nbsp;&lt;=15&nbsp;players&nbsp;in&nbsp;server
<br /></span><span style="color: #0000BB">sm_jailcontroller_ratio_full&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #FF8000">#&gt;&nbsp;//&nbsp;Ratio&nbsp;to&nbsp;use&nbsp;when&nbsp;15&lt;&nbsp;players&nbsp;in&nbsp;server
<br /></span><span style="color: #0000BB">sm_jailcontroller_forcet&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #FF8000">//&nbsp;Force&nbsp;players&nbsp;to&nbsp;join&nbsp;T
<br /></span><span style="color: #0000BB">sm_jailcontroller_show_classes&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #FF8000">//&nbsp;Show&nbsp;model&nbsp;selection&nbsp;
<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&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">Gives&nbsp;warden&nbsp;to&nbsp;the&nbsp;player&nbsp;</span><span style="color: #007700">or&nbsp;</span><span style="color: #0000BB">adds&nbsp;to&nbsp;queue
<br />sm_retire&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">Current&nbsp;warden&nbsp;can&nbsp;retire
<br />sm_guard&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">Ts&nbsp;can&nbsp;request&nbsp;to&nbsp;be&nbsp;a&nbsp;guard
<br />sm_vkwarden&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">Clients&nbsp;can&nbsp;votekick&nbsp;a&nbsp;warden&nbsp;off&nbsp;
<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&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">Resets&nbsp;the&nbsp;warden&nbsp;queue
<br />sm_clearguards&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">Resets&nbsp;the&nbsp;guard&nbsp;queue
<br />sm_removewarden&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">Removes&nbsp;the&nbsp;current&nbsp;warden
<br />sm_removeguard&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">player</span><span style="color: #007700">|</span><span style="color: #FF8000">#userid&gt;&nbsp;-&nbsp;Removes&nbsp;the&nbsp;player&nbsp;from&nbsp;the&nbsp;guard&nbsp;queue
<br /></span><span style="color: #0000BB">sm_banguard&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">player</span><span style="color: #007700">|</span><span style="color: #FF8000">#userid&gt;&nbsp;-&nbsp;Bans&nbsp;the&nbsp;player&nbsp;from&nbsp;becoming&nbsp;a&nbsp;guard
<br /></span><span style="color: #0000BB">sm_clearguardbans&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">Resets&nbsp;all&nbsp;guard&nbsp;bans&nbsp;
<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 &quot;sm plugins load jailcontroller&quot; 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ł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych