29.03.2008, 16:01
SA-MP inventory system
Read the ReadMe for installing.
Report any bug you find.
Features
Return 1 if the bag is full and null if is not.
Adds a item to the bag.
Return null if the bag is full.
Get the itemid from the given slot.
Check if there is an item in the bag.
Removes a item from the bag.
If there are same items it will remove only one.
I made this for my gamemod but i think it will help you guys too!
Enjoy!
Download
Mirror 1 (Provided by Nitroray)
Read the ReadMe for installing.
Report any bug you find.
Features
Code:
IsBagFull(bagid);
Code:
AddBagItem(bagid,itemid);
Return null if the bag is full.
Code:
GetSlotItem(bagid,slot);
Code:
IsItemInBag(bagid,itemid);
Code:
RemoveItem(bagid,itemid);
If there are same items it will remove only one.
I made this for my gamemod but i think it will help you guys too!
Enjoy!
Download
Mirror 1 (Provided by Nitroray)