Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

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


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Virtual Weapon Slots
- v0.0.1, posted at : 12/09/2023

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.
Even if you drop your AK, when you pick it up you will be able to reopen the menu and switch your AK.

Short Video

Include File
Code:

#if defined _virtual_weapon_slots_included
  #endinput
#endif
#define _virtual_weapon_slots_included

/**
 * Register Weapons
 *
 * @param szName        Name on Menu
 * @param iCSW                CSW_ of weapon
 * @return                An internal Weapon Index
 */
native virtual_weapon_register(const szName[], iCSW)

/**
 * Give weapon
 *
 * @param Id                Player Index
 * @param iSlot                Weapon Internal Index
 * @param iCSW                Weapon default ID
 */
native virtual_weapon_give(id, iSlot, iCSW)

/**
 * Remove Weapon
 *
 * @param Id                Player Index
 * @param iSlot                Weapon Internal Index
 * @param iCSW                Weapon default ID
 */
native virtual_weapon_take(id, iSlot, iCSW)

/**
 * Checks if user has the weapon (Holding or not holding)
 *
 * @param Id                Player Index
 * @param iSlot                Weapon Internal Index
 */
native virtual_weapon_user_has(id, iSlot)

/**
 * Gets the Weapon's Internal Index
 *
 * @param Id                Player Index
 */
native Float:virtual_weapon_get_current(id)



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.

Attached Files
File Type: sma Get Plugin or Get Source (virtual_weapon_slots.sma - 6.2 KB)
File Type: inc virtual_weapon_slots.inc (969 Bytes)
File Type: txt virtual_weapon_slots.txt (589 Bytes)

Przeczytaj cały wpis

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...