AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Simple Menu Builder (https://forums.alliedmods.net/showthread.php?t=284324)

OciXCrom 03-12-2017 16:43

Re: Simple Menu Builder
 
You can for example add an item in the beginning of the menu that will execute the "say /extra" command. I haven't added an option to change what the exit button does, but I may add it some day.

brlight 03-12-2017 17:57

Re: Simple Menu Builder
 
Adding an item with the "say /extra", works but if you have 20 or more players is a bit annoying having to go through the actual players to choose the item associated to the "say /extra" command but still better than nothing :-)
Thank you!

Ayman Khaled 06-08-2017 07:38

Re: Simple Menu Builder
 
Bug , when you press in an item that no command for it , it redirect you to the last item from first/Previous menu in the ini file, like if i press in AK fire serpent it redirect me to 'knives skins' item in nablus gaming menu
this is my code...

PHP Code:

[Default Settings]

;
These are the default settings for each menu created.

;
You can add certain options in [Menu Settings] if you want to change them.

;
Please note that every menu needs to have a different MENU_OPEN settingstherefore there's no default one.



MENU_TITLE_PAGE = %newline%Page:\d

MENU_BACK = \yPrevious Page

MENU_NEXT = \yNext Page

MENU_EXIT = \rClose

;MENU_OPEN = say /menu, say_team /menu, amx_mymenu -- This must be set with a different value on every menu!

MENU_FLAG = 0

MENU_TEAM = 0

MENU_ALIVEONLY = 0

MENU_ITEMS_PER_PAGE = 7

MENU_REOPEN = 0

MENU_ITEM_FORMAT = %item%

MENU_PREFIX = !g[NaBlu$-GamING]!n

MENU_NOACCESS = You have no access to open this menu.

MENU_NOTEAM = Your team isn'
t allowed to use this menu.

MENU_ALIVE You need to be alive to use this menu.

MENU_DEAD You need to be dead to use this menu.

MENU_SOUND =

; ------------------------------------------------------

[New 
Menu NaBlu$-GamING]



[
Menu Settings]

;<
settings> = <value>



MENU_TITLE = [NaBlu$-GamING]

MENU_OPEN say /nablus

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]

"CSGO Menu" "say /menu"

"Choose team" "chooseteam"

"Skins price" "say /skins"

"Report a player" "say !report"

"Voteban a player" "say .voteban"

"Admin Menu \d(ADMINs ONLY)" "amxmodmenu" "u"

"VIP Menu \d(VIPs ONLY)" "say /vipmenu" "t"

; ----------------------------------------------------

[New 
Menu Skins price]


[
Menu Settings]

;<
settings> = <value>



MENU_TITLE = [Skins Price]

MENU_OPEN say /skins

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]


"AK-47 Skins" "say /ak47"
"AWP Skins" "say /awp"
"M4a1-S Skins" "say /m4a1"
"Famas Skins" "say /famas"
"Galil Skins" "say /galil"
"MP7 Skins" "say /mp7"
"USP-S Skins" "say /usp"
"Deagle Skins" "say /deagle"
"Glock-18 Skins" "say /glock"
"Knives Skins" "say /knives"

; ----------------------------------------------------

[New 
Menu AK-47 Skins]


[
Menu Settings]

;<
settings> = <value>



MENU_TITLE = [AK-47 Skins]

MENU_OPEN say /ak47

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]


"AK-47 | Aquamarine Revenge = 1k" 
"AK-47 | Case Hardened = 1.5k"
"AK-47 | Fire Serpent = 2k"
"AK-47 | Frontside Misty = 2k"
"AK-47 | Fuel Injector = 1.5k"
"AK-47 | Point Dissaray = 3k"
"AK-47 | Redline = 1k"
"AK-47 | Vulcan = 1.5k"
"AK-47 | Jaguar = 1k"
"AK-47 | Elite Build = 800"

; ----------------------------------------------------

[New 
Menu AWP Skins]


[
Menu Settings]

;<
settings> = <value>



MENU_TITLE = [AWP Skins]

MENU_OPEN say /awp

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]


"AWP | Asiimov = 5k"
"AWP | Boom = 3k"
"AWP | Dragon Lore = 5k"
"AWP | Electric Hive = 1.5k"
"AWP | Elite Build = 2k"
"AWP | Graphite = 1k"
"AWP | Medusa = 3k"
"AWP | Hyper Beast = 5k"
"AWP | Man-O'-War = 800"
"AWP | Pink DDPAT = 1k"

; ----------------------------------------------------

[New 
Menu M4a1-S Skins]


[
Menu Settings]

;<
settings> = <value>



MENU_TITLE = [M4a1-S Skins]

MENU_OPEN say /m4a1

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]


"M4A1-S | Basillisk = 1.5k"
"M4A1-S | Chantico's Fire = 1k"
"M4A1-S | Cyrex = 2.5k"
"M4A1-S | Golden Coil = 1.5k"
"M4A1-S | Hyper Beast = 3k"
"M4A1-S | Howl = 5k"

; ----------------------------------------------------

[New 
Menu Famas Skins]


[
Menu Settings]

;<
settings> = <value>



MENU_TITLE = [Famas Skins]

MENU_OPEN say /famas

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]


"FAMAS | Mecha Industries = 2k"
"FAMAS | Roll Cage = 1k"
"FAMAS | Djinn = 1k"
"FAMAS | Valence = 2k"
"FAMAS | Pulse = 1.5k"
"FAMAS | Survivor Z = 1.5k"

; ----------------------------------------------------

[New 
Menu Galil Skins]


[
Menu Settings]

;<
settings> = <value>



MENU_TITLE = [Galil Skins]

MENU_OPEN say /galil

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]


"GALIL-AR | Black Sand = 800"
"GALIL-AR | Firefighter = 500"
"GALIL-AR | Eco = 1k"
"GALIL-AR | Orange DDPAT = 1k"
"GALIL-AR | Cerberus = 400"
"GALIL-AR | Chatterbox = 600"

; ----------------------------------------------------

[New 
Menu MP7 Skins]


[
Menu Settings]

;<
settings> = <value>



MENU_TITLE = [MP7 Skins]

MENU_OPEN say /mp7

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]


"MP7 | Urban Hazard = 500"
"MP7 | Nemesis = 500"
"MP7 | Cirrus = 300"
"MP7 | Special Delivery = 600"
"MP7 | Armor Core = 800"
"MP7 | Blood = 500"

; ----------------------------------------------------

[New 
Menu USP-S Skins]


[
Menu Settings]

;<
settings> = <value>



MENU_TITLE = [USP-S Skins]

MENU_OPEN say /usp

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]


"USP-S | Stainless = 300"
"USP-S | Caiman = 500"
"USP-S | Orion = 1k"
"USP-S | Cyrex = 2k"
"USP-S | Overgrowth = 800"
"USP-S | Kill Confirmed = 2k"
"USP-S | Guardian = 1k"
"USP-S | Lead Conduit = 500"
"USP-S | Royal Blue = 300"
"USP-S | Torque = 1k"

; ----------------------------------------------------

[New 
Menu Deagle Skins]


[
Menu Settings]

;<
settings> = <value>



MENU_TITLE = [Deagle Skins]

MENU_OPEN say /deagle

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]


"DEAGLE | Cobalt Distruption = 1.5k"
"DEAGLE | Conspiracy = 600"
"DEAGLE | Directive = 500"
"DEAGLE | Kumicho Dragon = 1k"
"DEAGLE | Hypnotic = 1.5k"
"DEAGLE | Blaze = 2k"

; ----------------------------------------------------

[New 
Menu Glock-18 Skins]


[
Menu Settings]

;<
settings> = <value>



MENU_TITLE = [Glock-18 Skins]

MENU_OPEN say /glock

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]


"GLOCK-18 | Fade = 1k"
"GLOCK-18 | Dragon Tattoo = 500"
"GLOCK-18 | Weasel = 500"
"GLOCK-18 | Wasteland Rebel = 1k"
"GLOCK-18 | Water Elemental = 2k"
"GLOCK-18 | Bunsen Burner = 800"
"GLOCK-18 | Blue Fissure = 300"
"GLOCK-18 | Reactor = 400"
"GLOCK-18 | Wraith = 600"
"GLOCK-18 | Royal Legion = 900"

; ----------------------------------------------------

[New 
Menu Knives Skins]


[
Menu Settings]

;<
settings> = <value>



MENU_TITLE = [Knives Skins]

MENU_OPEN say /knives

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]



"Gut Knives" "say /gut"

"Bayonet Knives" "say /bayonet"

"Shadow dagger Knives" "say /shadow"

"Hunstman Knives" "say /huntsman"

"Butterfly Knives" "say /btf"

"M9 Bayonet Knives" "say /m9"

"Falchion Knives" "say /falchion"

"Karambit Knives" "say /karambit"

; ----------------------------------------------------

[New 
Menu Gut Knives]



[
Menu Settings]

;<
settings> = <value>


MENU_TITLE = [Gut Knives]

MENU_OPEN say /gut

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]



"Gut Knife = 10k"
"Gut Knife | Crimson Web = 13k"
"Gut Knife | Sapphire = 15k"
"Gut Knife | Ruby = 13k"
"Gut Knife | Marble Fade = 18k"

; ----------------------------------------------------

[New 
Menu Bayonet Knives]



[
Menu Settings]

;<
settings> = <value>


MENU_TITLE = [Bayonet Knives]

MENU_OPEN say /bayonet

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]



"Bayonet = 10k"
"Bayonet | Sapphire = 15k"
"Bayonet | Ruby = 18k"

; ----------------------------------------------------

[New 
Menu Shadow dagger Knives]



[
Menu Settings]

;<
settings> = <value>


MENU_TITLE = [Shadow Knives]

MENU_OPEN say /shadow

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]



"Shadow Daggers | Rainbow = 25k"

; ----------------------------------------------------

[New 
Menu Hunstman Knives]



[
Menu Settings]

;<
settings> = <value>


MENU_TITLE = [Huntsman Knives]

MENU_OPEN say /huntsman

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]



"Huntsman Knife | Fade = 38k"
"Huntsman Knife | Crimson Web = 35k"
"Huntsman Knife | Slaughter = 30k"

; ----------------------------------------------------

[New 
Menu Butterfly Knives]



[
Menu Settings]

;<
settings> = <value>


MENU_TITLE = [Butterfly Knives]

MENU_OPEN say /btf

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]



"Butterfly Knife = 30k"
"Butterfly Knife | Crimson Web = 33k"
"Butterfly Knife | Fade = 35k"
"Butterfly Knife | Lore = 38k"

; ----------------------------------------------------

[New 
Menu M9 Bayonet Knives]



[
Menu Settings]

;<
settings> = <value>


MENU_TITLE = [M9 Knives]

MENU_OPEN say /m9

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]



"M9 Bayonet = 40k"
"M9 Bayonet | Crimson Web = 45k"
"M9 Bayonet | Sapphire = 45k"
"M9 Bayonet | Ruby = 48k"
"M9 Bayonet | Urban Masked = 43k"

; ----------------------------------------------------

[New 
Menu Falchion Knives]



[
Menu Settings]

;<
settings> = <value>


MENU_TITLE = [Falchion Knives]

MENU_OPEN say /falchion

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]



"Falchion Knife = 40k"
"Falchion Knife | Crimson Web = 48k"
"Falchion Knife | Slaughter = 45k"

; ----------------------------------------------------

[New 
Menu Karambit Knives]



[
Menu Settings]

;<
settings> = <value>


MENU_TITLE = [Karambit Knives]

MENU_OPEN say /karambit

MENU_REOPEN 
1



[Menu Items]

;<
Item Name> <Command> [Flag] [Team]



"Karambit = 50k"
"Karambit | Sapphire = 55k"
"Karambit | Ruby = 55k"
"Karambit | Marble Fade = 60k"
"Karambit | Tiger Tooth = 70k"
"Karambit | Fade = 60k"

; ---------------------------------------------------- 


OciXCrom 06-09-2017 07:31

Re: Simple Menu Builder
 
I don't see what's the point of adding items without commands. I fixed it however.

KleinMarquez 10-18-2017 05:20

Re: Simple Menu Builder
 
Code:

[Default Settings]
;These are the default settings for each menu created.
;You can add certain options in [Menu Settings] if you want to change them.
;Please note that every menu needs to have a different MENU_OPEN settings, therefore there's no default one.

MENU_TITLE = My Simple Menu
MENU_TITLE_PAGE = %newline%Page:\d
MENU_BACK = \yPrevious Page
MENU_NEXT = \yNext Page
MENU_EXIT = \rClose
;MENU_OPEN = say /menu, say_team /menu, amx_mymenu -- This must be set with a different value on every menu!
MENU_FLAG = 0
MENU_TEAM = 0
MENU_ALIVEONLY = 1
MENU_ITEMS_PER_PAGE = 7
MENU_REOPEN = 0
MENU_ITEM_FORMAT = %item%
MENU_PREFIX = !g[Simple Menu]!n
MENU_NOACCESS = You have no access to this menu.
MENU_NOTEAM = Your team isn't allowed to use this menu.
MENU_ALIVE = You need to be alive to use this menu.
MENU_DEAD = You need to be dead to use this menu.
MENU_SOUND =

[New Menu = Buy Menu]

[Menu Settings]
;<settings> = <value>

MENU_OPEN = say /buymenu, say_team /buymenu, amx_buymenu
MENU_REOPEN = 1

[Menu Items]
;<Item Name> <Command> [Flag] [Team]

"Pistols" "amx_buymenu_pistols"
"Shotguns" "amx_buymenu_shotguns"
"SMGs" "amx_buymenu_smgs"
"Rifles" "amx_buymenu_rifles"
"Machine Guns" "amx_buymenu_machineguns"
#blank 1
"Grenades" "amx_buymenu_machineguns"
"Equipments" "amx_buymenu_equipments"

This is unfinished, please improve my Menu?

OciXCrom 10-18-2017 06:17

Re: Simple Menu Builder
 
Improve what? I assume you want to add all weapons in the menu? I've made this before. Have a look:

PHP Code:

[Default Settings]
;
These are the default settings for each menu created.
;
You can add certain options in [Menu Settings] if you want to change them.
;
Please note that every menu needs to have a different MENU_OPEN settingstherefore there's no default one.

MENU_TITLE = My Simple Menu
MENU_TITLE_PAGE = %newline%Page:\d
MENU_BACK = \yPrevious Page
MENU_NEXT = \yNext Page
MENU_EXIT = \rClose
;MENU_OPEN = say /menu, say_team /menu, amx_mymenu -- This must be set with a different value on every menu!
MENU_FLAG = 0
MENU_ALIVEONLY = 0
MENU_ITEMS_PER_PAGE = 7
MENU_REOPEN = 0
MENU_ITEM_FORMAT = %item%
MENU_PREFIX = !g[Simple Menu]!n
MENU_NOACCESS = You have no access to this menu.
MENU_ALIVE = You need to be alive to use this menu.
MENU_DEAD = You need to be dead to use this menu.
MENU_SOUND =

[New Menu = Main Menu]

[Menu Settings]
MENU_OPEN = say /menu, say_team /menu, menu_buy
MENU_TITLE = Buy Menu
MENU_TITLE_PAGE = \y
MENU_ITEMS_PER_PAGE = 0

[Menu Items]
"Handguns" "menu_handguns"
"Shotguns" "menu_shotguns"
"Sub-Machine Guns" "menu_submachines"
"Rifles" "menu_rifles"
"Machine Guns" "menu_machineguns"
#blank 0
"Primary Ammo" "buyammo1"
"Secondary Ammo" "buyammo2"
"Equipment" "menu_equipment"
#blank 1
"Close" "slot10"

[New Menu = Handguns]

[Menu Settings]
MENU_OPEN = menu_handguns
MENU_TITLE = Buy a Handgun

[Menu Items]
Glock glock
USP usp
P228 p228
Deagle deagle
Five-Seven fiveseven
"Dual Elites" elites

[New Menu = Shotguns]

[Menu Settings]
MENU_OPEN = menu_shotguns
MENU_TITLE = Buy a Shotgun

[Menu Items]
M3 m3
XM1014 xm1014

[New Menu = Sub-Machine Guns]

[Menu Settings]
MENU_OPEN = menu_submachines
MENU_TITLE = Buy a Sub-Machine Gun

[Menu Items]
TMP tmp
MAC10 mac10
"MP5 Navy" mp5
UMP45 ump45
P90 p90

[New Menu = Rifles]

[Menu Settings]
MENU_OPEN = menu_rifles
MENU_TITLE = Buy a Rifle

[Menu Items]
Galil galil
Famas famas
AK47 ak47
M4A1 m4a1
Scout scout
SG552 sg552
AUG aug
G3SG1 g3sg1
SG550 sg550
AWP awp

[New Menu = Machine Guns]

[Menu Settings]
MENU_OPEN = menu_machineguns
MENU_TITLE = Buy a Machine Gun

[Menu Items]
M249 m249

[New Menu = Equipment]

[Menu Settings]
MENU_OPEN = menu_equipment
MENU_TITLE = Buy Equipment

[Menu Items]
"HE Grenade" hegren
Flashbang flash
"Smoke Grenade" sgren
"Defuse Kit" defuser
Kevlar vest
"Kevlar + Helmet" vesthelm
"Tactical Shield" shield 


warps013 05-23-2018 16:27

Re: Simple Menu Builder
 
When tried to compile it next errors are logged
Quote:

Error: Undefined symbol "MSG_ONE_UNRELIABLE" on line 511
Warning: Expression has no effect on line 511
Error: Invalid expression, assumed zero on line 511
Error: Invalid expression, assumed zero on line 511
Error: Too many error messages on one line on line 511
what should I do?

OciXCrom 05-23-2018 16:31

Re: Simple Menu Builder
 
You should upgrade to the latest AMXX version.

warps013 05-23-2018 16:51

Re: Simple Menu Builder
 
Quote:

Originally Posted by OciXCrom (Post 2593555)
You should upgrade to the latest AMXX version.

Thanks! :oops:

Snake. 08-09-2018 23:26

Re: Simple Menu Builder
 
Best plugin i had ever used. Anyway, I have a suggestion for this plugin and i need it. Is is possible to add languages support for the settings or even items ? Example:

Code:

[New Menu = Menu Sample]

[Menu Settings]
MENU_OPEN = say /menu
MENU_ITEMS_PER_PAGE = 2
MENU_TITLE = TITLE_TRANSLATION
MENU_TITLE_PAGE = TITLE_PAGE_TRANSLATION
MENU_BACK = BACK_TRANSLATION
MENU_NEXT = NEXT_TRANSLATION
MENU_EXIT = EXIT_TRANSLATION
MENU_NOACCESS = MENU_NOACCESS_TRANSLATION
MENU_NOTEAM = MENU_NOTEAM_TRANSLATION
MENU_ALIVE = MENU_ALIVE_TRANSLATION
MENU_DEAD = MENU_DEAD_TRANSLATION
MENU_LANG_PATH = menusample.txt

[Menu Items]
"%L" "FIRST_TRANSLATION"
"%L" "SECOND_TRANSLATION"



All times are GMT -4. The time now is 06:06.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.