[FilterScript] Inventory & Items - Textdraw menu
#1

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).
  • 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 15 items per player, you can decrease but cannot increase from 15, check Settings for modification.
  • 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!
You can modify menu from this code:
PHP Code:
// Settings
enum
{
    
BACKGROUND 1263615688,
    
LEFT_BACKGROUND 1853316296,
    
RIGHT_BACKGROUND 1853316296,
    
SELECTED 0xd63417BB,
    
FONT 1,
    
MAX_PLAYER_ITEMS 10 // maximum = 15
};
// 
Screenshot


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

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


Messages In This Thread
Inventory & Items - Textdraw menu - by Gammix - 06.07.2017, 10:24
Re: Inventory & Items - Textdraw menu - by Max_Andolini - 06.07.2017, 10:41
Re: Inventory & Items - Textdraw menu - by Eoussama - 06.07.2017, 11:02
Re: Inventory & Items - Textdraw menu - by coool - 06.07.2017, 11:05
Re: Inventory & Items - Textdraw menu - by Gammix - 06.07.2017, 11:59
Re: Inventory & Items - Textdraw menu - by DonaldDuck - 06.07.2017, 12:27
Re: Inventory & Items - Textdraw menu - by RxErT - 06.07.2017, 13:24
Re: Inventory & Items - Textdraw menu - by Marmeladova - 06.07.2017, 13:43
Re: Inventory & Items - Textdraw menu - by Gammix - 06.07.2017, 14:02
Re: Inventory & Items - Textdraw menu - by ajam123 - 06.07.2017, 23:40
Re: Inventory & Items - Textdraw menu - by MrAjusshi - 06.07.2017, 23:42
Re: Inventory & Items - Textdraw menu - by SteSte - 07.07.2017, 02:54
Re: Inventory & Items - Textdraw menu - by Dice_ - 07.07.2017, 03:07
Re: Inventory & Items - Textdraw menu - by Gammix - 07.07.2017, 19:15
Re: Inventory & Items - Textdraw menu - by MarkNelson - 07.07.2017, 21:34
Re: Inventory & Items - Textdraw menu - by HoussemGaming - 07.07.2017, 22:06
Re: Inventory & Items - Textdraw menu - by Gammix - 07.07.2017, 22:30
Re: Inventory & Items - Textdraw menu - by Swinte - 08.07.2017, 00:49
Re: Inventory & Items - Textdraw menu - by Gammix - 08.07.2017, 04:40
Re: Inventory & Items - Textdraw menu - by PT - 09.07.2017, 03:50
Re: Inventory & Items - Textdraw menu - by Astralis - 09.07.2017, 12:18
Re: Inventory & Items - Textdraw menu - by Barnwell - 09.07.2017, 14:39
Respuesta: Inventory & Items - Textdraw menu - by MeScript2212 - 18.07.2017, 15:23
Re: Inventory & Items - Textdraw menu - by Dignity - 27.12.2017, 22:41
Re: Inventory & Items - Textdraw menu - by KyNe - 28.12.2017, 00:12
Re: Inventory & Items - Textdraw menu - by NewFreeroamStunt - 28.12.2017, 11:57
Re: Inventory & Items - Textdraw menu - by Gammix - 07.01.2018, 21:13

Forum Jump:


Users browsing this thread: 5 Guest(s)