<!-- 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 "none" 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 "t" by overriding the command "no_kdr_restrict" 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">"<b>sm_kdrwl_useupdater</b>" = "0" min. 0.000000 max. 1.000000<br /> - Utilize 'Updater' plugin to auto-update this plugin when updates are published?<br />1 = Yes, 0 = No<br /><br />"<b>sm_kdrwl_weaponswitch</b>" = "0"<br /> - Automatically have client switch to replacement weapon when given?<br />1 = Yes<br />0 = No.<br /><br />"<b>sm_kdrwl_announce</b>" = "0"<br /> - Announce to all players when a player gets restricted<br />1 = Yes<br />0 = No.<br /><br />"<b>sm_kdrwl_sw2</b>" = "weapon_p228"<br /> - List the secondary weapon to give the player if the reach ratio2 and are forced to drop their pistol<br /><br />"<b>sm_kdrwl_pw2</b>" = "weapon_scout"<br /> - List the primary weapon to give the player if the reach ratio2 and are forced to drop their weapon<br /><br />"<b>sm_kdrwl_sw1</b>" = "weapon_p228"<br /> - List the secondary weapon to give the player if the reach ratio1 and are forced to drop their pistol<br /><br />"<b>sm_kdrwl_pw1</b>" = "weapon_scout"<br /> - List the primary weapon to give the player if the reach ratio1 and are forced to drop their weapon<br /><br />"<b>sm_kdrwl_minkills</b>" = "0"<br /> - 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 />"<b>sm_kdrwl_botkills</b>" = "0"<br /> - Ignore bot kills towards players KDR?<br />0 = No, count with KDR<br />1 = Yes, do not count with KDR.<br /><br />"<b>sm_kdrwl_useexempt</b>" = "0"<br /> - Use the exemption system?.<br /><br />"<b>sm_kdrwl_drop</b>" = "2"<br /> - When should player be forced to drop restricted weapon?<br />1 = Immediately<br />2 = Beginning of next round.<br /><br />"<b>sm_kdrwl_maintain</b>" = "1" min. 0.000000 max. 1.000000<br /> - 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 />"<b>sm_kdrwl_rw2</b>" = "awp sg550 g3sg1 m4a1 ak47 deagle"<br /> - List the weapons a player cannot use once they've reached the ratio2 limit<br /><br />"<b>sm_kdrwl_ratio2</b>" = "5.0"<br /> - KDR Ratio a player must meet before stage 2 weapon limit is enforced against them.<br /><br />"<b>sm_kdrwl_rw1</b>" = "awp sg550 g3sg1"<br /> - List the weapons a player cannot use once they've reached the ratio1 limit<br /><br />"<b>sm_kdrwl_ratio1</b>" = "3.0"<br /> - KDR Ratio a player must meet before stage 1 weapon limit is enforced against them.<br /><br />"<b>sm_kdrwl_sound</b>" = "buttons/weapon_cant_buy.wav"<br /> - Path and file name of sound file to use for restriction sound relative to sound folder.<br /><br />"<b>sm_kdrwl_usesound</b>" = "1" min. 0.000000 max. 1.000000<br /> - Play sound to player when they reach KDR and are forced to drop their weapon?<br />0 = No<br />1 = Yes<br /><br />"<b>sm_kdrwl_enabled</b>" = "1" min. 0.000000 max. 1.000000<br /> - 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 /> * 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ł
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] KDR Weapon Limit
Temat rozp. Adminek AMXX.PL, 11.04.2013 04:46
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych