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

Random Weapons Mod


  • 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 24.05.2014 01:58

<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hey, guys! So, let's explain the story. Soon I've got the idea of how funny will this be - a mod, where on each spawn you get random pack of weapons. So, my first work was to search, and I found one mod like this, and it was approved. But I thought that I could make maybe a better one with a code optimized and more features. Now to describe the plugin:<br /><br /><br /><font size="4"><b><font color="red">.: Description :.</font></b></font><br /><br />This plugin is a simple mod, which gives a random weapon pack (primary, pistol and a grenade) on each <u>spawn</u>. I think it'll be good for classic/dust2/other fun mods. Also, if you want your server to be based on this mod, you can use the weapon, which restricts the buyzone (good combinations between the two plugins).<br /><br /><br /><b><font size="4"><font color="red">.: Features :.</font></font></b><br /><br />First of all, you can easy control almost all of them by cvars. <br />- One of the options is to give random weapons on player, only when he died before the spawn. Otherwise, if he was alive untill the new spawn, he will keep his previous weapon. <br />- There is also an options to control the giving of each part of the weapon pack. You can turn on and off the giving of primary weapons, pistols or grenades - separately. If a part from the pack is disabled, the user will keep his previous weapon from this part. <br /><b>Example:</b> If you have disabled the giving of pistols, you get spawned, get new random primary weapon, get new random grenade, but you keep your previous pistol.<br />- On every spawn you will see a information message with what you received this time. this message also depends of the cvars and gets automatically changed if you turn off/on some part of the weapon pack.<br /><br /><br /><b><font size="4"><font color="red">.: Cvars :.</font></font></b><br /><br /><font color="#00BF00"><b>1. The main type of giving:</b></font><br /><b><font color="#FF0000">random_weapons_only_killed</font> (default: 0)</b><br />/0 - gives new random pack on EACH spawn/<br />/1 - gives new random pack on spawn, but ONLY if you died before! - /<br />/If it is to 1, you will keep your previous weapon if you didn't die before the spawn/<br /><br /><font color="#00BF00"><b>2. Turn on/off the giving of each part of the pack:</b></font><br /><b><font color="#FF0000">radnom_weapons_primary</font> (default: 1)</b><br />/1 - will give random primary weapons in the conditions defined by the cvar above/<br />/0 - will NEVER give random primary weapons/<br /><b><font color="#FF0000">radnom_weapons_pistols</font> (default: 1)</b><br />/1 - will give random pistols in the conditions defined by the cvar above/<br />/0 - will NEVER give random pistols/<br /><b><font color="#FF0000">radnom_weapons_grenades</font> (default: 1)</b><br />/1 - will give random grenades in the conditions defined by the cvar above/<br />/0 - will NEVER give random grenades/<br /><br /><br /><b><font size="4"><font color="red">.: Credits :.</font></font></b><br /> - @<a href="https://forums.allie...er.php?u=206567" target="_blank">Blizzard_87</a> - for very helpful 'private' tutorial of working with enums. Thanks a lot!<br /><br />Also there is a prefix const in the begining of the code, which you can change. Hope you will enjoy it! Waiting for your comments!</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/inc.gif" alt="File Type: inc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...38;d=1400893114">stripweapons.inc</a> (4.5 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sma.gif" alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>

<a href="http://www.amxmodx.o...?file_id=133763"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1400893114">Get Source</a> (RandomWeps.sma - 4.5 KB)

</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/inc.gif" alt="File Type: inc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...38;d=1400893114">colorchat.inc</a> (5.9 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