!HELP! Inventory System
#7

I've made an inventory system for my gamemode which supports unlimited items which all have weights that limits the amount of items a player can carry depending on his Strength. This inventory system is completely GUI based and supports dropping items and trading them securely with other players.

I can tell you that such a system is not easy to make and is as big as many gamemodes released in here, so you're up for a BIG task there!

1) I would assume that we need to first create variables for the inventory system(How to I am Not Sure!)
For a proper inventory system you would need some kind of database to store all the player items in. Best bet would be to use sqlite which is natively supported in SA:MP.

2) I would think the next thing would be to define OnPlayerDisconnect and Connect that the player gets the same items they left the server with.
There is more to this than that; you would need a login system to identify users. Then you would need to give them all their items. You also have questions like: How do players get items? How do they use them or give them away? What if they die with items on them? Should they have a visual representation? How should a player sell/trade his items?

3) I would think that we next create some more but from here I would be totally lost..
Yes.. You would need to create a lot more How should a players inventory be presented to him? How should he navigate and sort his items?

4)In all honesty I have no clue what the hell I'm doing when it comes to this!
If you don't know where to start, maybe you should start with some other things for your gamemode and come back to this one when you feel more comfortable about it.
Reply


Messages In This Thread
!HELP! Inventory System - by notec100 - 01.03.2009, 16:16
Re: !HELP! Inventory System - by notec100 - 01.03.2009, 22:07
Re: !HELP! Inventory System - by JaYmE - 02.03.2009, 15:06
Re: !HELP! Inventory System - by notec100 - 02.03.2009, 18:19
Re: !HELP! Inventory System - by mirkoiz - 03.03.2009, 13:58
Re: !HELP! Inventory System - by notec100 - 05.03.2009, 06:44
Re: !HELP! Inventory System - by MaXx001 - 05.03.2009, 07:10
Re: !HELP! Inventory System - by Kinetic - 05.03.2009, 18:47
Re: !HELP! Inventory System - by mirkoiz - 05.03.2009, 18:51
Re: !HELP! Inventory System - by notec100 - 05.03.2009, 21:19

Forum Jump:


Users browsing this thread: 1 Guest(s)