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

[CSGO] Weapon Jam


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

Napisano 08.05.2014 01:36

<!-- BEGIN TEMPLATE: postbit_external -->
<div><font size="5"><div align="center"><b>Weapon Jam</b></div></font><br /><br /><br /><b>Introduction:</b><br />While shooting, your weapon might get jammed and you need to reload. This way you can balance guns or making shootouts more random. You can modify the probability for each weapon (by default they are all 1). Shotguns are not included because I thought that it would be a silly idea.<br /><br /><b>Probabilities:</b><br />1 = 0.1% (= an average of one in a thousand bullet causes weapon to jam)<br />2 = 0.2%<br />3 = 0.3%<br />...<br />10 = 1%<br />...<br />100 = 10%<br /><br /><b>About<b></b>:</b><br />I have done some simple plugins for my server (I thank all of you who helped me with them). I tried to use switch-case but it gave me weird errors. I tried to look for instructions but I couldn't understand what was wrong so I just used if-else. Feel free to give me some constructive feedback or suggestions. We have tested this for a 2 days now and it seems to work just fine.<br /><br /><b>ConVars:</b><br /><b>&quot;sm_weaponjam_enabled&quot;</b> = &quot;1&quot; min. 0.000000 max. 1.000000 - Enable/Disable the plugin. Enable = 1.<br /><b>&quot;sm_weaponjam_propability_ak47&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon ak47 get jammed.<br /><b>&quot;sm_weaponjam_propability_aug&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon aug get jammed.<br /><b>&quot;sm_weaponjam_propability_awp&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon awp get jammed.<br /><b>&quot;sm_weaponjam_propability_bizon&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon bizon get jammed.<br /><b>&quot;sm_weaponjam_propability_deagle&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon deagle get jammed.<br /><b>&quot;sm_weaponjam_propability_elite&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon elite get jammed.<br /><b>&quot;sm_weaponjam_propability_famas&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon famas get jammed.<br /><b>&quot;sm_weaponjam_propability_fiveseven&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon fiveseven get jammed.<br /><b>&quot;sm_weaponjam_propability_g3sg1&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon g3sg1 get jammed.<br /><b>&quot;sm_weaponjam_propability_galilar&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon galilar get jammed.<br /><b>&quot;sm_weaponjam_propability_glock&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon glock get jammed.<br /><b>&quot;sm_weaponjam_propability_hkp2000&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon hkp2000/usp get jammed.<br /><b>&quot;sm_weaponjam_propability_m4a1&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon m4a1/m4a3 get jammed.<br /><b>&quot;sm_weaponjam_propability_mac10&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon mac10 get jammed.<br /><b>&quot;sm_weaponjam_propability_mp7&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon mp7 get jammed.<br /><b>&quot;sm_weaponjam_propability_mp9&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon mp9 get jammed.<br /><b>&quot;sm_weaponjam_propability_p250&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon p250/CZ-75 get jammed.<br /><b>&quot;sm_weaponjam_propability_p90&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon p90 get jammed.<br /><b>&quot;sm_weaponjam_propability_scar20&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon scar20 get jammed.<br /><b>&quot;sm_weaponjam_propability_sg550&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon sg550 get jammed.<br /><b>&quot;sm_weaponjam_propability_ssg08&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon ssg08 get jammed.<br /><b>&quot;sm_weaponjam_propability_tec9&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon tec9 get jammed.<br /><b>&quot;sm_weaponjam_propability_ump45&quot;</b> = &quot;1&quot; min. 1.0 max. 100.0 - How often does the weapon ump45 get jammed.<br /><br /><b>Installation:</b><br />Copy the .smx to the addons/sourcemod/plugins/ and .sp to the addons/sourcemod/scripting/ folders.</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=133305"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1399509317">Get Source</a> (weapon_jam2.sp - 16.5 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=1399509317">weapon_jam2.smx</a> (8.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