View Single Post
Author Message
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 09-16-2020 , 09:17   Pijudo: new hud menu system
Reply With Quote #1

Well this is a menu system per hud, I always wanted to make one when I was a teenager but I did not have the capacity to do it, so I share it with you. I publish it more as a contribution than as a plugin because the idea is that it is a guide and that they make the modifications that they believe necessary in terms of menu positions and elements.

The system uses 3 dhud: 1 for the title, X for the items and 1 for the Exit, Return, Next options.

Where X depends on the content of the elements, minimum 1 DHUD.

It has support for both static menus and dynamic menus.

Natives

Spoiler


Example
Spoiler


Important: the title of hud_menu_register and hud_menu_create_title must match!

Credits:
Matias_Esf -> Testing
Metalicross -> For guiding me to the game sdk to investigate the dhud
r0ma' -> For the suggestions <3

Put HudMenu.amxx before your plugins that use the menu.

Some images
Spoiler


GITHUB
Attached Files
File Type: inc hudmenu.inc (1.3 KB, 287 views)
File Type: sma Get Plugin or Get Source (TestHudMenu.sma - 422 views - 4.1 KB)
File Type: sma Get Plugin or Get Source (HudMenu.sma - 289 views - 8.8 KB)
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"

Last edited by Roccoxx; 09-16-2020 at 12:53.
Roccoxx is offline
Send a message via MSN to Roccoxx