AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   New AMXX Menu System (https://forums.alliedmods.net/showthread.php?t=46364)

Craxor 09-24-2016 21:37

Re: New AMXX Menu System
 
Quote:

Originally Posted by Black Rose (Post 2456734)
"Find in files"
Great functions found in most editors. NP++, Sublime, et.c.

Sorry, i'm using just simple notepad, i realy hate IDE...

^SmileY 10-17-2016 10:51

Re: New AMXX Menu System
 
Did someone know if that is already implemented on last amxx dev build?

https://bugs.alliedmods.net/show_bug.cgi?id=6002

Thanks.

Arkshine 10-17-2016 11:09

Re: New AMXX Menu System
 
If the bug is not closed/solved, it means it's not implemented.

It's still in discussion here https://github.com/alliedmodders/amxmodx/pull/371.
The last change he made needs to be reviewed.

^SmileY 10-18-2016 17:19

Re: New AMXX Menu System
 
Quote:

Originally Posted by Arkshine (Post 2462883)
If the bug is not closed/solved, it means it's not implemented.

It's still in discussion here https://github.com/alliedmodders/amxmodx/pull/371.
The last change he made needs to be reviewed.

Thanks, i also reported something like get_task function to be implemented at bugzilla.
Some of these small things make my life much more easy.

Still doing hard work, n1ce :bee:

georgik57 11-10-2016 13:36

Re: New AMXX Menu System
 
Thank you

DEJAN PREDE 09-05-2021 12:26

Re: New AMXX Menu System
 
hello guys sorry about this, but I have question
currently I need to make a menu and I am stuck at giving weapon
I made menu (test menu) and added 3 items
1. m4a1
2. ak47
3. deagle
soo want to know how I need to code

here code :

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

new menu = menu_create(fun menu, menu_handler);

menu_additem(menu, m4a1, #1 "", ADMIN_ADMIN);
menu_additem(menu, ak47, #2 "", ADMIN_ADMIN);
menu_additem(menu, deagle #2 "", ADMIN_ADMIN);

register_clcmd(funmenu, funmenu);

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);

menu_display(id, menu, 0);
menu_handler(id, menu, 0);



}
switch(item)
{
case 0:
{
user_get_weapon

fysiks 09-05-2021 16:24

Re: New AMXX Menu System
 
You need to look at the examples in the first post. It looks like the basic menu is the closest to your description.


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

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