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"


Porcay 09-23-2018 17:13

Re: Simple Menu Builder
 
Is it possible to make a menu that opens automatically when spawn ?

OciXCrom 09-24-2018 07:42

Re: Simple Menu Builder
 
Quote:

Originally Posted by Porcay (Post 2616511)
Is it possible to make a menu that opens automatically when spawn ?

Not at the moment without using another plugin for the job. I may add such a feature at some point.

Quote:

Originally Posted by Snake. (Post 2609408)
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"


Multilingual menus will be available in AMXX 1.9/1.10 (click). I don't plan on adding such a feature earlier.

iceeedr 09-24-2018 09:08

Re: Simple Menu Builder
 
@Ocix, he can use a task 1.0 on spawnpost, no?

OciXCrom 09-24-2018 12:43

Re: Simple Menu Builder
 
There's no need for a task.

PHP Code:

#include <amxmodx>
#include <hamsandwich>

public plugin_init()
{
    
register_plugin("Menu on Spawn""1.0""OciXCrom")
    
RegisterHam(Ham_Spawn"player""OnPlayerSpawn"1)
}

public 
OnPlayerSpawn(id)
{
    if(
is_user_alive(id))
        
client_cmd(id"say /menu_command")



iceeedr 09-24-2018 15:05

Re: Simple Menu Builder
 
Quote:

Originally Posted by OciXCrom (Post 2616599)
There's no need for a task.

PHP Code:

#include <amxmodx>
#include <hamsandwich>

public plugin_init()
{
    
register_plugin("Menu on Spawn""1.0""OciXCrom")
    
RegisterHam(Ham_Spawn"player""OnPlayerSpawn"1)
}

public 
OnPlayerSpawn(id)
{
    if(
is_user_alive(id))
        
client_cmd(id"say /menu_command")



I like the task, because the menu does not open quickly after the spawn, a second gives a feeling of comfort, but you are correct.

Snake. 01-19-2019 00:26

Re: Simple Menu Builder
 
Can you add two feature to this like that ?

Code:

There'll be MENU_EXIT_TO option.With this, menu will exit to another menus or items.

For example

MENU_EXIT_TO = say /mainmenu, mainmenu

Code:

New ignore bots flag in the menu.

OciXCrom 01-19-2019 07:27

Re: Simple Menu Builder
 
Good idea, I'll have it mind for the next update.

luciaus18 01-21-2019 10:23

Re: Simple Menu Builder
 
I get this when I press something on the menu: Server tried to get invalid command: "say /reg"
This is my .ini file:
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 = Useful Commands
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[Useful Commands]!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 = Menu Sample]

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

MENU_OPEN = say /menu, say_team /menu, amx_mymenu
MENU_REOPEN = 1

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

"Register System" "say /reg"
"XP Ranks" "say /xplist"
"Played Time" "say /pm"
"Switch team" "say /change"
"Go Spectator" "say /spec"
"Back to game" "say /back"
"Parachute" "say /para"
"Show Rules" "say /rules"
"How to get VIP" "/wantvip"
"VIP'S Online" "say /vips"
"Boost for VIP" "say /boost"
"Admin Price" "say /admininfo"


One more thing: How to add a motd too? I have a lot of commands with say but I also have some motd to open

OciXCrom 01-21-2019 13:34

Re: Simple Menu Builder
 
Your game has some protection that is blocking the server from executing "say" commands on your client. I can't do anything to bypass that. About the MOTD, use this - https://forums.alliedmods.net/showthread.php?t=297627

luciaus18 01-21-2019 14:51

Re: Simple Menu Builder
 
Oh you talk about the client protection. That was the problem

Sugestion: how about a key bind for this menu? for example i, is near y and u and you can acces it to open the menu automatically

faKe91 01-22-2019 06:30

Re: Simple Menu Builder
 
You can try this "Register System" "do.func(plugin_name.amxx, function_name)" where
plugin_name.amxx - your plugin reg system
function_name - reg function in that plugin

It will work if that function has only id parameter

OciXCrom 01-22-2019 07:07

Re: Simple Menu Builder
 
bind i "say /menu"

?

luciaus18 01-22-2019 08:42

Re: Simple Menu Builder
 
Yes
MENU_OPEN = say /menu, say_team /menu, amx_mymenu, bind i "say /menu" (like this?)

OciXCrom 01-22-2019 10:23

Re: Simple Menu Builder
 
Uh, no. Open your console and bind the menu to the "i" button. You can't use a plugin to force-bind something to players.

luciaus18 01-22-2019 11:25

Re: Simple Menu Builder
 
There were some plugins with bind a long time ago.. Can you recommend me something?
And for the motd plugin..it doesn't open the motd..idk why..not even the /forum which opens a web page in a motd
Code:

#===============================================#
# MOTD Commands by OciXCrom: Configuration file #
#===============================================#

# The default path for the .txt files is the 'cstrike' folder.
# You can use which ever folder you want inside 'cstrike': cstrike/addons/amxmodx/data/motds/rules.txt
# The maximum MOTD size is 1536 characters if not using a webpage.
# You can use one of three possible formats listed down below.

# Format #1: <chat command> [MOTD title] = <file.txt>
# Format #2: <chat command> [MOTD title] = <HTML code>
# Format #3: <chat command> [MOTD title] = <http://your-link-here.com>

/rules = rules.txt
/prices = prices.txt
/forum = http://www.fsfsrsf.com/forum


HamletEagle 01-22-2019 11:43

Re: Simple Menu Builder
 
Quote:

Originally Posted by luciaus18 (Post 2636019)
There were some plugins with bind a long time ago.. Can you recommend me something?

What part from "you can not and should not force bind on clients" don't you understand?

OciXCrom 01-22-2019 13:31

Re: Simple Menu Builder
 
Quote:

Originally Posted by luciaus18 (Post 2636019)
There were some plugins with bind a long time ago.. Can you recommend me something?
And for the motd plugin..it doesn't open the motd..idk why..not even the /forum which opens a web page in a motd
Code:

#===============================================#
# MOTD Commands by OciXCrom: Configuration file #
#===============================================#

# The default path for the .txt files is the 'cstrike' folder.
# You can use which ever folder you want inside 'cstrike': cstrike/addons/amxmodx/data/motds/rules.txt
# The maximum MOTD size is 1536 characters if not using a webpage.
# You can use one of three possible formats listed down below.

# Format #1: <chat command> [MOTD title] = <file.txt>
# Format #2: <chat command> [MOTD title] = <HTML code>
# Format #3: <chat command> [MOTD title] = <http://your-link-here.com>

/rules = rules.txt
/prices = prices.txt
/forum = http://www.fsfsrsf.com/forum


Long time ago CS didn't have any protection and this site didn't have rules that forbid it.
Check if the MOTD plugin is running with the amx_plugins command. If it is, you have some other plugin that is blocking the chat commands.

LithuanianJack 01-23-2019 04:11

Re: Simple Menu Builder
 
Hi. What option I should use to move text in new line? This option don't work:

[New Menu = Menu4]

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

MENU_TITLE = Bazooka Menu
MENU_OPEN = bazookaopen
MENU_REOPEN = 0

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

"Buy bazooka %newline%%newline%" "say /bazooka

OciXCrom 01-23-2019 07:41

Re: Simple Menu Builder
 
"Buy bazooka" "say /bazooka"
#blank
#blank

luciaus18 01-23-2019 16:01

Re: Simple Menu Builder
 
I have a plugin which hide slash commands

OciXCrom 01-24-2019 08:14

Re: Simple Menu Builder
 
That's the problem. That plugin should be last in plugins.ini. Any chat commands below it will be blocked.

luciaus18 01-24-2019 10:55

Re: Simple Menu Builder
 
I have placed it the last one but still doesn't work.. I did it from the start..I was thinking about that

OciXCrom 01-24-2019 16:59

Re: Simple Menu Builder
 
Remove it and see if it will work.

HiDeath 02-20-2019 08:22

Re: Simple Menu Builder
 
Good work , really useful one :)

ApoziX 04-11-2019 06:32

Re: Simple Menu Builder
 
How do I set back button to one of my menus?

I want to set it but I get close

OciXCrom 04-11-2019 08:05

Re: Simple Menu Builder
 
You can manually add it and make it execute the command that opens the other menu.

Snake. 04-11-2019 16:34

Re: Simple Menu Builder
 
Quote:

Originally Posted by Snake. (Post 2635409)
Can you add two feature to this like that ?

Code:

There'll be MENU_EXIT_TO option.With this, menu will exit to another menus or items.

For example

MENU_EXIT_TO = say /mainmenu, mainmenu

Code:

New ignore bots flag in the menu.

Hi, i had a request similar to what apoziX wants.

Snake. 04-22-2019 01:21

Re: Simple Menu Builder
 
Bump for the above

Snake. 05-24-2019 20:26

Re: Simple Menu Builder
 
I'm bumping this again to be updated for this.
Code:

There'll be MENU_EXIT_TO option.With this, menu will exit to another menus or items.

For example

MENU_EXIT_TO = say /mainmenu, mainmenu

Code:

New ignore bots flag in the menu.

Snake. 06-19-2019 10:13

Re: Simple Menu Builder
 
Suggestion:

Items according to plugins that's working currently.

"Main Menu" "say /menu"
-pm.amxx-
"PM Menu" "say /pm"
-#allplugins-
"Second Menu" "second_menu"

When PM.amxx working, PM Menu will be showed.
-#allplugins- means it will be showed in any plugin.


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

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