Skocz do zawartości

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:GO] Knife Upgrade 2.2.9 (Saves Knife Selection) **Updated 7-17-2014**


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

Napisano 02.07.2014 04:48

<!-- BEGIN TEMPLATE: postbit_external -->
<div><b>Description:</b><br />-Player can type !knife for the &quot;Knife Menu&quot; or !knifename to choose a custom knife skin. <br />-Player's knife choice is remembered for future connections.<br /><br /><b>Thanks:</b><br />This plugin was inspired by <a href="https://forums.allie...ad.php?t=234536" target="_blank">Dkmuniz</a> and <a href="https://forums.alliedmods.net/showpost.php?p=2132467&amp;postcount=83" target="_blank">Franc1sco</a> <br /><br /><b>Supported Custom Knife Skins / Chat Triggers:</b><br /><ul><li>Bayonet (!bayonet)</li>
<li>Gut Knife (!gut)</li>
<li>Flip Knife (!flip)</li>
<li>M9 Bayonet (!m9)</li>
<li>Karambit (!karambit)</li>
<li>Huntsman (!huntsman)</li>
<li>Butterfly (!butterfly)</li>
</ul><br /><b>Notes:</b><br />-The custom knife skins only work for players who have the default knives equipped in their inventory.<br />-You can restrict access to certain flags only using &quot;sm_knifeupgrade&quot; in overrides.<br />-Supports Automatic Update using <a href="https://forums.allie...ad.php?t=169095" target="_blank">Updater.</a><br />-Requires <a href="https://forums.alliedmods.net/showthread.php?t=169095" target="_blank">Updater</a> to Compile <br /><br /><b>Coming Soon:</b><br />-Translation Support<br /><br /><b>Changelog:</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 /><!-- 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">2.2.9 (07/17/2014):<br />-Added a check for dm_weapons_allow_3rd_party. If it's 0, it's set to 1.<br />-Removed CVAR sm_knifeupgrade_needs_access, it's no longer needed.<br />-Fixed unnecessary cookie caching<br />-Readded setting of cookie on knife selection in case plugin is reloaded after choosing a new knife.<br />-Fixed timer callbacks to be more reliable.<br />-Cleaned up code a bit<br /><br />2.2.8 (07/17/2014):<br />-Made knife equipping slightly faster.<br />-If player hasn't chosen a custom knife, the player isn't forced through strip / equip of a new one. (Only works if you haven't run the plugin previously, or do below step)<br />-Delete addons/sourcemod/data/sqlite/clientprefs-sqlite.sq3 and restart server for better future performance. (Note: Doing this will delete all previously saved player cookies from other plugins as well.)<br /><br />v2.2.6 - 2.2.7 (07/16/2014):<br />-More error checking and rare issue with &quot;client not in game&quot; fix.<br /><br />v2.2.5 (07/16/2014):<br />-Made knife saving even more efficient<br /><br />v2.2.4 (07/16/2014):<br />-Made knife saving more efficient<br /><br />v2.2.2-v2.2.3 (07/15/2014):<br />-Fixed bug with sm_knifeupgrade_map_disable, that would cause you to not have a knife when you should if this cvar was set to 1.<br /><br />v2.2.1 (07/15/2014):<br />-ReAdded CVAR sm_knifeupgrade_map_disable<br />-Made changes that may help server crashes<br />-Made changes that may fix random floating knife issue<br /><br />v2.2.0 (07/13/2014):<br />-Added new CVAR: sm_knifeupgrade_welcome_menu_only_no_knife (default value = 1)<br />--If sm_knifeupgrade_welcome_menu is 1, then this new CVAR will make it so that if a player has already chosen a custom knife skin previously, they will not see the welcome menu.<br /><br />v2.1.9 (07/13/2014):<br />-Made changes to code to possibly fix crashes on certain servers.<br />-If Welcome menu is enabled, the welcome menu timer no longer starts when player joins the server, instead it starts on first respawn.<br />--Default sm_knifeupgrade_welcome_menu_timer timer has been lowered to 8.5 seconds since the timer is now based on first spawn, instead of on server join. Minimum is now set to 1 second instead of 12 seconds.<br /><br />v2.1.8 (07/12/2014):<br />-Fixed bugs that could be causing server crashes. <br />-Removed CVAR sm_knifeupgrade_map_disable (temporarily) <br /><br />v2.1.7 (07/11/2014):<br />-Fixed bugs that could be causing server crashes. <br />-If welcome message and welcome menu timer are set to the same time, they're adjusted slightly.<br />-Fixed bug where if welcome menu and welcome message were both enabled, the same function would be called twice, which would cause the message and menu to appear twice.<br /><br />v2.1.5 (07/11/2014):<br />-Added CVAR to allow golden knife. <b>sm_knifeupgrade_gold_knife</b> (Set to 1 to Enable this knife)<br /><br /><b>Note: This is disabled by default. Some servers will have an issue with this knife. If you have issues where the gold knife won't equip, or it just floats in front of you, disable this knife. I have no idea why this knife works on some servers but not others. I think it doesn't work on servers where game mode is &quot;<i>Classic Competitive</i>&quot; </b><br /><br />v2.1.0 - 2.1.4 (07/11/2014):<br />-Attempting to fix hangs / crashes under certain conditions.<br />-Improved Client checking<br /><br />v2.0.9 (07/10/2014):<br />-Improved Performance<br /><br />v2.0.8 (07/10/2014):<br />-Fixed missing <b>sm_knifeupgrade_needs_access</b> convar.<br /><br />v2.0.7 (07/10/2014):<br />-Made changes that may prevent plugin from crashing/hangs without logs.<br /><br />v2.0.6 (07/10/2014):<br />-Removed CVAR: sm_knifeupgrade_donor_flag.<br />-Added CVAR: sm_knifeupgrade_needs_access. //Default is sm_knifeupgrade_needs_access &quot;0&quot;<br /><br />Note: If <b>sm_knifeupgrade_needs_access</b> is set to <b>1</b> plugin will only work for users with the (Reserved Slot flag &quot;a&quot;) To use a custom flag, put <b>&quot;sm_knifeupgrade&quot; &quot;<i>my flag(s) here</i>&quot;</b>&nbsp; in <b>addons/sourcemod/config/admin_overrides.cfg</b><br /><br />v2.0.5 (07/10/2014):<br />-Temporarily Removed Donor Flag access until certain issues are worked out.<br /><br />v2.0.4 (07/10/2014):<br />-Fixed bug that may cause server to hang under certain conditions.<br />-Improved performance<br /><br />v2.0.3 (07/07/2014):<br />-If players do not have access to knife commands, they are told so, and attempt is no longer shown in chat.<br />-Players without plugin access no longer see plugin messages. (Welcome and Spawn Messages)<br /><br />v2.0.2 (07/07/2014):<br />-Made it possible to choose knife while dead.<br /><br />v2.0.1 (07/06/2014):<br />-Added more error checking<br /><br />v2.0.0 (07/05/2014):<br />-Added more error checking<br />-Added support for sm_updater plugin.<br /><br />v1.9 (07/04/2014):<br />-Fixed another Client not in game bug.<br /><br />v1.8 (07/04/2014):<br />-Added CVar: Disable knife on maps that don't spawn a knife by default. (sm_knifeupgrade_map_disable)<br />-Fixed another case that could cause a &quot;client not in game&quot; error.<br />-Fixed an issue that could cause players to not spawn with a knife when they should have one.<br /><br />v1.7 (07/03/2014):<br />-Added CVar for: Donor Flag Access Only (sm_knifeupgrade_donor_flag &quot;&quot;)<br />-Added Default knife menu option, and chat trigger. (!default)<br /><br />v1.6 (07/03/2014):<br />-Added CVars for: Welcome Menu and Welcome Menu Timer.<br />-If a map does not spawn you with a knife, the plugin should now allow you to choose a custom knife to spawn with. (Not tested)<br /><br />v1.5 (07/02/2014):<br />-Added Cvars for: Welcome Message, Spawn Message, Spawn Menu, Knife Chosen Message, Enable / Disable Plugin<br /><br />v1.4 (07/02/2014):<br />-Fixed a bug that could cause &quot;client not in game&quot; errors.<br /><br />v1.3 (07/02/2014):<br />-Added shortcut triggers to equip and save knife skin selection.<br />--Triggers: !bayonet, !gut, !flip, !m9, !karambit, !huntsman, !butterfly<br />--Renamed menu selections to correspond with trigger names.</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>
</div>
</div><br /><br /><b>3 Examples of an admin_override.cfg (<i>addons/sourcemod/config/admin_overrides.cfg</i>)</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 /><i><b>Overrides </b>are only used if</i> <b>sm_knifeupgrade_needs_access</b> is set to <b>1.</b> <br /><br /><b>1) Give Users with 'f' flag access</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">Overrides<br /></span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"sm_knifeupgrade"&nbsp;"f"&nbsp;</span><span style="color: #FF8000">//Users&nbsp;with&nbsp;the&nbsp;f&nbsp;flag&nbsp;now&nbsp;have&nbsp;access<br /></span><span style="color: #007700">}&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b>2) Give Users with 'p' flag access</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">Overrides<br /></span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"sm_knifeupgrade"&nbsp;"p"&nbsp;</span><span style="color: #FF8000">//Users&nbsp;with&nbsp;the&nbsp;p&nbsp;flag&nbsp;now&nbsp;have&nbsp;access<br /></span><span style="color: #007700">}&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b>3) Give Users with flags 'abc' access</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">Overrides<br /></span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"sm_knifeupgrade"&nbsp;"abc"&nbsp;</span><span style="color: #FF8000">//Users&nbsp;with&nbsp;the&nbsp;abc&nbsp;flags&nbsp;now&nbsp;have&nbsp;access&nbsp;(Users&nbsp;must&nbsp;have&nbsp;all&nbsp;flags&nbsp;listed,&nbsp;not&nbsp;just&nbsp;one&nbsp;of&nbsp;them)<br /></span><span style="color: #007700">}&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --></div>
</div>
</div><br /><br /><b>Auto Generated Config / Cvars: (<i>cfg/sourcemod/sm_knifeupgrade.cfg</i>)</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 />// This file was auto-generated by SourceMod (v1.6.1-dev+4526)<br />// ConVars for plugin &quot;sm_knifeupgrade.smx&quot;<br /><br /><br />// Show message to player when player chooses a knife.<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />sm_knifeupgrade_chosen_message &quot;1&quot;<br /><br />// Enable / Disable Golden Knife<br />// -<br />// Default: &quot;0&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />sm_knifeupgrade_gold_knife &quot;0&quot;<br /><br />// Set to 1 to if you want to Restrict access. (Access Requires 'a' flag.)<br />// -<br />// Default: &quot;0&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />sm_knifeupgrade_needs_access &quot;0&quot;<br /><br />// Enable / Disable Plugin<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />sm_knifeupgrade_on &quot;1&quot;<br /><br />// Show Knife Menu on Spawn<br />// -<br />// Default: &quot;0&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />sm_knifeupgrade_spawn_menu &quot;0&quot;<br /><br />// Show Plugin Message on Spawn<br />// -<br />// Default: &quot;0&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />sm_knifeupgrade_spawn_message &quot;0&quot;<br /><br />// Knife Upgrade Version<br />// -<br />// Default: &quot;2.2.0&quot;<br />sm_knifeupgrade_version &quot;2.2.0&quot;<br /><br />// Show Knife Menu on player connect.<br />// -<br />// Default: &quot;0&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />sm_knifeupgrade_welcome_menu &quot;0&quot;<br /><br />// Show Knife Menu on player Spawn ONCE and only if they haven't already chosen a knife before.<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />sm_knifeupgrade_welcome_menu_only_no_knife &quot;1&quot;<br /><br />// When (in seconds) AFTER SPAWNING THE FIRST TIME the knife menu should be displayed.<br />// -<br />// Default: &quot;8.5&quot;<br />// Minimum: &quot;1.000000&quot;<br />// Maximum: &quot;90.000000&quot;<br />sm_knifeupgrade_welcome_menu_timer &quot;8.5&quot;<br /><br />// Show Plugin Message on player connect.<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />sm_knifeupgrade_welcome_message &quot;1&quot;<br /><br />// When (in seconds) the message should be displayed after the player joins the server.<br />// -<br />// Default: &quot;25.0&quot;<br />// Minimum: &quot;25.000000&quot;<br />// Maximum: &quot;90.000000&quot;<br />sm_knifeupgrade_welcome_message_timer &quot;25.0&quot;<br /></div>
</div>
</div><br /><br /><font color="Red"><b>IMPORTANT NOTE:</b></font> <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"><font size="3"><b>IF YOU ARE RUNNING THIS PLUGIN:</b><br /><br /><b><i><a href="https://forums.allie...ad.php?t=233685" target="_blank">&quot;Deathmatch Goes Advanced&quot; by h3bus</a></i></b><br /><br />Make sure in <font color="red"><b><i>Addons/Sourcemod/Config/Deathmatch.ini </i></b></font>you have:<br /><br /><font color="Red"><b>&quot;dm_weapons_allow_3rd_party&quot; &quot;1&quot;</b></font><br /><br />If you <b><font color="Red">don't</font></b> have this set to 1, there is a good chance <font color="Red"><b>your server will experience random crashes.</b></font> </font></code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></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/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=1405655851">sm_knifeupgrade.smx</a> (10.0 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- 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=135801"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1405657095">Get Source</a> (sm_knifeupgrade.sp - 16.1 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