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] KDR Weapon Limit


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

Napisano 11.04.2013 04:46

<!-- BEGIN TEMPLATE: postbit_external -->
<div><b>DESCRIPTION:</b><br />This plugin is a fairly configurable weapon restriction plugin based on Kill:Death Ratio (KDR). There are 2 different levels of KDR you can set along with two corresponding CVars to list the restricted weapons for each of those levels.<br /><br />You can set the restriction to take affect the moment the player exceeds your set KDR values, or have it set the restriction the next time they spawn.<br /><br />You can define the primary and secondary replacement weapons for each level of the KDR or use &quot;none&quot; to not give any replacements and just have the player drop the weapon.<br /><br />This plugin has the option to maintain the restrictions even if the player disconnects and reconnects to attempt to circumvent the restriction. It is reset on map change.<br /><br />If you desire, you can utilize the built in immunity. By default, immunity to this plugin is off. You can also override the default admin flag of &quot;t&quot; by overriding the command &quot;no_kdr_restrict&quot; to whatever it is you want.<br /><br />You can also count bot kills towards a player's KDR or not.<br /><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>CVars</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;"><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&quot;<b>sm_kdrwl_useupdater</b>&quot; = &quot;0&quot; min. 0.000000 max. 1.000000<br />&nbsp;- Utilize 'Updater' plugin to auto-update this plugin when updates are published?<br />1 = Yes, 0 = No<br /><br />&quot;<b>sm_kdrwl_weaponswitch</b>&quot; = &quot;0&quot;<br />&nbsp;- Automatically have client switch to replacement weapon when given?<br />1 = Yes<br />0 = No.<br /><br />&quot;<b>sm_kdrwl_announce</b>&quot; = &quot;0&quot;<br />&nbsp;- Announce to all players when a player gets restricted<br />1 = Yes<br />0 = No.<br /><br />&quot;<b>sm_kdrwl_sw2</b>&quot; = &quot;weapon_p228&quot;<br />&nbsp;- List the secondary weapon to give the player if the reach ratio2 and are forced to drop their pistol<br /><br />&quot;<b>sm_kdrwl_pw2</b>&quot; = &quot;weapon_scout&quot;<br />&nbsp;- List the primary weapon to give the player if the reach ratio2 and are forced to drop their weapon<br /><br />&quot;<b>sm_kdrwl_sw1</b>&quot; = &quot;weapon_p228&quot;<br />&nbsp;- List the secondary weapon to give the player if the reach ratio1 and are forced to drop their pistol<br /><br />&quot;<b>sm_kdrwl_pw1</b>&quot; = &quot;weapon_scout&quot;<br />&nbsp;- List the primary weapon to give the player if the reach ratio1 and are forced to drop their weapon<br /><br />&quot;<b>sm_kdrwl_minkills</b>&quot; = &quot;0&quot;<br />&nbsp;- Minimum number of kills required to start counting KDR.<br />0 = disabled, count KDR right away<br />N = Number of kills required before counting KDR<br /><br />&quot;<b>sm_kdrwl_botkills</b>&quot; = &quot;0&quot;<br />&nbsp;- Ignore bot kills towards players KDR?<br />0 = No, count with KDR<br />1 = Yes, do not count with KDR.<br /><br />&quot;<b>sm_kdrwl_useexempt</b>&quot; = &quot;0&quot;<br />&nbsp;- Use the exemption system?.<br /><br />&quot;<b>sm_kdrwl_drop</b>&quot; = &quot;2&quot;<br />&nbsp;- When should player be forced to drop restricted weapon?<br />1 = Immediately<br />2 = Beginning of next round.<br /><br />&quot;<b>sm_kdrwl_maintain</b>&quot; = &quot;1&quot; min. 0.000000 max. 1.000000<br />&nbsp;- Maintain restrictions until map changes?<br />If set to no (0) then players can just reconnect to be able to purchase restricted weapons again.<br /><br />&quot;<b>sm_kdrwl_rw2</b>&quot; = &quot;awp sg550 g3sg1 m4a1 ak47 deagle&quot;<br />&nbsp;- List the weapons a player cannot use once they've reached the ratio2 limit<br /><br />&quot;<b>sm_kdrwl_ratio2</b>&quot; = &quot;5.0&quot;<br />&nbsp;- KDR Ratio a player must meet before stage 2 weapon limit is enforced against them.<br /><br />&quot;<b>sm_kdrwl_rw1</b>&quot; = &quot;awp sg550 g3sg1&quot;<br />&nbsp;- List the weapons a player cannot use once they've reached the ratio1 limit<br /><br />&quot;<b>sm_kdrwl_ratio1</b>&quot; = &quot;3.0&quot;<br />&nbsp;- KDR Ratio a player must meet before stage 1 weapon limit is enforced against them.<br /><br />&quot;<b>sm_kdrwl_sound</b>&quot; = &quot;buttons/weapon_cant_buy.wav&quot;<br />&nbsp;- Path and file name of sound file to use for restriction sound relative to sound folder.<br /><br />&quot;<b>sm_kdrwl_usesound</b>&quot; = &quot;1&quot; min. 0.000000 max. 1.000000<br />&nbsp;- Play sound to player when they reach KDR and are forced to drop their weapon?<br />0 = No<br />1 = Yes<br /><br />&quot;<b>sm_kdrwl_enabled</b>&quot; = &quot;1&quot; min. 0.000000 max. 1.000000<br />&nbsp;- Is plugin enabled?<br />0 = No<br />1 = Yes</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>
</div>
</div><br /><br /><b>REQUIREMENTS:</b><br />SourceMod Version: 1.5.0-dev+3765<br /><a href="http://forums.allied...ad.php?t=106748" target="_blank">SDKHooks</a> (latest version of 1.5 comes with SDKHooks)<br /><br /><i>Optional:</i><br /><a href="http://forums.allied...d.php?p=1570806" target="_blank">Updater</a><br /><br /><b>INSTALLATION AND NOTES:</b><br />1. Put .smx file in your sourcemod/plugins folder<br />2. Put the phrases.txt files in your sourcemod/translations folder<br />3. Restart your server and edit the config file created in cfg/sourcemod named plugin.kdr_weapon_limit.cfg then restart the plugin (or better server) if you make changes.<br /><br /><b><font color="Red">CREDITS:</font></b><br />The following people helped alpha and beta test this and many thanks for bearing with the errors and left over debug junk:<br /><a href="https://forums.allie...er.php?u=149049" target="_blank">Noitartsiger</a><br /><a href="https://forums.allie...er.php?u=193144" target="_blank">pubhero</a><br />They also helped provide the other translation language files<br /><br /><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Change Log</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 /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><b>1.0.0.0</b><br />&nbsp; &nbsp; *&nbsp; &nbsp; Initial public release</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></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.../attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...38;d=1365651951">KDR Weapon Limit.zip</a> (30.0 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