Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[FilterScript] Inventory & Items - Textdraw menu

$
0
0
Inventory & Items
This is a simple(maybe!) inventory system you can use in a survival or hunger game sort of server. I guess its bugs free so far from the testing i did. Its very easy to use and quiet modern. I wanted to use this for my new hunger games mode, but i guess i am taking a break right now so this might be helpful for someone!

Some core features:
  • Press "Y" to open inventory!
  • Scroll bar for left menu i.e. list of items near the player (on floor). (yea, i'll fix scroll bar soon)
  • Custom item positioning which saves with the type, so if you need a specific rotation for a specific item type, you can simply /edititem and all the items with that type will have new rotation set.
  • Animations upon picking and droping items.
  • Maximum 24 items a player can pick, you can decrease this from script (only recommended for scripters, you might have to change textdraws positions etc.) - for quick way, only decrease the rows limit.
  • The left and right menu are completely dynamic, if a player picks an item from your ground, that item will disappear from your textdraw list!
  • Double click on left menu items to quick pick them up.
  • Double click on right menu items to quick use them.
  • Press ESC to close the inventory.

Creating items guide
  • Login as RCON admin
  • Type /newitem, and create a new item
  • (*Optional) If you want to adjust the rotation or Z push, type /edititem and select the item you recently added.
  • Now the item has been created and is in your created item history. In order to duplicate that item, type /additem and select the item from the list, thats it!

Screenshot


Required Libraries & Credits
Streamer plugin - http://forum.sa-mp.com/showthread.php?t=102865
ColAndreas plugin - http://forum.sa-mp.com/showthread.php?t=586068
Sscanf2 plugin - http://forum.sa-mp.com/showthread.php?t=602923
I-ZCMD include - http://forum.sa-mp.com/showthread.php?t=576114
Dialogs include - http://forum.sa-mp.com/showthread.php?t=570213
EasyDialog include (by Emmet_) - https://github.com/Agneese-Saini/SA-...easydialog.inc

Download
https://github.com/Agneese-Saini/SA-.../inventory.pwn

Viewing all articles
Browse latest Browse all 595

Trending Articles