ScavengeSurvive/itemtype-bag
Provides an item type definition for wearable containers so players can carry multiple items with them.
Zainstaluj za pomocą sampctl
sampctl package install ScavengeSurvive/itemtype-bag
Uruchom to w folderze swojego projektu. sampctl pobiera pakiet i to, od czego zależy.
Dodaje jej pliki include, razem z bibliotekami, od których zależy, do kompilatora Pawn w twojej przeglądarce, gotowe do dołączenia w skrypcie.
Zależy od 12 pakietów
- sampctl/samp-stdlibnie ma go w tym katalogu
- Southclaws/samp-logger★ 21
- pawn-lang/YSI-Includes★ 226
- ScavengeSurvive/item★ 7
- ScavengeSurvive/container★ 3
- ScavengeSurvive/item-array-data★ 1
- ScavengeSurvive/language★ 2
- ScavengeSurvive/inventory★ 7
- ScavengeSurvive/mathutil★ 5
- ScavengeSurvive/personal-space★ 5
- ScavengeSurvive/inventory-dialog★ 2
- ScavengeSurvive/container-dialog★ 1
README.md
Bag Items
Provides an item type definition for wearable containers so players can carry multiple items with them.
Installation
Simply install to your project:
sampctl package install ScavengeSurvive/itemtype-bag
Include in your code and begin using the library:
#include <bag>
Usage
Use DefineBagType to define the given ItemType as a bag item with the
specified name and attachment offsets. The attachment offsets are used for
attaching the bag to the spine bone when the player wears the bag.
You can use GivePlayerBag to make a player wear a bag item and
RemovePlayerBag to remove it.
DestroyPlayerBag destroys the player's currently worn bag item along with all
the contained items.
While giving items to a player, you can use the helper function
AddItemToPlayer which determines whether to place the given item into the
player's inventory or their bag.
Testing
To test, simply run the package:
sampctl package run
And connect to localhost:7777 to test.
inventory-systempawn-packagesa-mpsa-mp-library
Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem