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

[VWS] Virtual Weapon Slots - (ie. Multiple AKs at same time)


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

Napisano 12.09.2023 19:08

<div><font face="Trebuchet MS"><font size="6"><font color="#b5762d">Virtual Weapon Slots</font></font></font><br /><font size="1"><font color="#4C4C4C">- v0.0.1, posted at : 12/09/2023</font></font><br /><br />This is a beta version of my new project. Now you can use more than 2 of the same weapons. For example, you can have 2 special AKs or AWPs.<br />Even if you drop your AK, when you pick it up you will be able to reopen the menu and switch your AK.<br /><br /><a href="https://www.youtube.com/watch?v=RecG6hZ_-vk" target="_blank" rel="nofollow noopener">Short Video</a><br /><br /><font face="Trebuchet MS"><b><font color="#006699"><font size="4">Include File</font></font></b><br /><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">#if defined _virtual_weapon_slots_included<br />&nbsp; #endinput<br />#endif<br />#define _virtual_weapon_slots_included<br /><br />/**<br />&nbsp;* Register Weapons<br />&nbsp;*<br />&nbsp;* @param szName&nbsp; &nbsp; &nbsp; &nbsp; Name on Menu<br />&nbsp;* @param iCSW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSW_ of weapon<br />&nbsp;* @return&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; An internal Weapon Index<br />&nbsp;*/<br />native virtual_weapon_register(const szName[], iCSW)<br /><br />/**<br />&nbsp;* Give weapon<br />&nbsp;*<br />&nbsp;* @param Id&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Player Index<br />&nbsp;* @param iSlot&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Weapon Internal Index<br />&nbsp;* @param iCSW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Weapon default ID<br />&nbsp;*/<br />native virtual_weapon_give(id, iSlot, iCSW)<br /><br />/**<br />&nbsp;* Remove Weapon<br />&nbsp;*<br />&nbsp;* @param Id&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Player Index<br />&nbsp;* @param iSlot&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Weapon Internal Index<br />&nbsp;* @param iCSW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Weapon default ID<br />&nbsp;*/<br />native virtual_weapon_take(id, iSlot, iCSW)<br /><br />/**<br />&nbsp;* Checks if user has the weapon (Holding or not holding)<br />&nbsp;*<br />&nbsp;* @param Id&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Player Index<br />&nbsp;* @param iSlot&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Weapon Internal Index<br />&nbsp;*/<br />native virtual_weapon_user_has(id, iSlot)<br /><br />/**<br />&nbsp;* Gets the Weapon's Internal Index<br />&nbsp;*<br />&nbsp;* @param Id&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Player Index<br />&nbsp;*/<br />native Float:virtual_weapon_get_current(id)</code><hr />
</div></font><br /><br />Despite this is not 100% finish, the main point of the plugin is working. And for that reason i am releasing it as a beta version so you can start using it.</div>


<br /> <div style="padding:6px">








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<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="https://www.amxmodx....27"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1694541920">GetSource</a> (virtual_weapon_slots.sma - 6.2 KB)

</td>
</tr><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...n_slots.inc</a>(969 Bytes)


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


<a href="https://forums.allie...n_slots.txt</a>(589 Bytes)


</td>
</tr>
</table>
</fieldset>


</div>

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych