Raised This Month: $51 Target: $400
 12% 

How To Make Menus ( The Complete Example! )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 06-26-2005 , 16:54   How To Make Menus ( The Complete Example! )
Reply With Quote #1

Alright I Made This PLugin To Show You Guys/Girls How To Make Menus...
I Dont Mind If You Copy This Code And Add Stuff This Is For Help xeroblood helped me with menus so i think its time for me to help someone else! This Code Complies Fine... Ill Include The .amxx if you want to see it in game.... the command is menu_1
okay heres the code:
Code:
#include <amxmodx> #define Keysmenu_1 (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9) // Keys: 1234567890 #define Keysmenu_2 (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9) // Keys: 1234567890 public plugin_init() {     register_plugin("Making_menus","1.0","Fire")     register_cvar("making_menu","1")     register_clcmd( "menu_1","Showmenu_1")     register_clcmd( "menu_2","Showmenu_2")     register_menucmd(register_menuid("menu_1"), Keysmenu_1, "Pressedmenu_1")     register_menucmd(register_menuid("menu_2"), Keysmenu_2, "Pressedmenu_2") } public Showmenu_1(id) {     show_menu(id, Keysmenu_1, "1: SomeThing^n2: SomeThing^n3: SomeThing^n4: SomeThing^n5: SomeThing^n6: SomeThing^n7: SomeThing^n8: SomeThing^n9: SomeThing^n0: More^n^n", -1, "menu_1") // Display menu } public Pressedmenu_1(id, key) {     /* Menu:     * 1: SomeThing     * 2: SomeThing     * 3: SomeThing     * 4: SomeThing     * 5: SomeThing     * 6: SomeThing     * 7: SomeThing     * 8: SomeThing     * 9: SomeThing     * 0: More     *     */         switch (key) {         case 0: { // 1                     }         case 1: { // 2                     }         case 2: { // 3                     }         case 3: { // 4                     }         case 4: { // 5                     }         case 5: { // 6                     }         case 6: { // 7                     }         case 7: { // 8                     }         case 8: { // 9                     }         case 9: client_cmd(id,"menu_2")      }     return PLUGIN_HANDLED } public Showmenu_2(id) {     show_menu(id, Keysmenu_2, "1: SomeThing^n2: SomeThing^n3: SomeThing^n4: SomeThing^n5: SomeThing^n6: SomeThing^n7: SomeThing^n8: SomeThing^n9: SomeThing^n0: Exit^n", -1, "menu_2") // Display menu } public Pressedmenu_2(id, key) {     /* Menu:     * 1: SomeThing     * 2: SomeThing     * 3: SomeThing     * 4: SomeThing     * 5: SomeThing     * 6: SomeThing     * 7: SomeThing     * 8: SomeThing     * 9: SomeThing     * 0: Exit     */         switch (key) {         case 0: { // 1                     }         case 1: { // 2                     }         case 2: { // 3                     }         case 3: { // 4                     }         case 4: { // 5                     }         case 5: { // 6                     }         case 6: { // 7                     }         case 7: { // 8                     }         case 8: { // 9                     }         case 9: { // 0                     }     return PLUGIN_HANDLED     } }
and the amxx version is attached
hope this helps... -Fire
Attached Files
File Type: amx makeing_menus.amx (1.8 KB, 524 views)
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
mobytoss
Senior Member
Join Date: Jun 2004
Location: On my TS server
Old 06-26-2005 , 17:34  
Reply With Quote #2

Hmm, dude, Im afraid someone's already done a rather in-depth guide to menus.
__________________
"As we know, There are known knowns. There are things we know we know. We also know There are known unknowns. That is to say We know there are some things We do not know. But there are also unknown unknowns, The ones we don't know We don't know."
mobytoss is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 06-26-2005 , 17:35  
Reply With Quote #3

or you could just recomend people to use amxx editor v2....
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 06-26-2005 , 17:36  
Reply With Quote #4

amxx editor v2 dose not show you how to make submenus...
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 06-26-2005 , 21:49  
Reply With Quote #5

Menu Tutorial

It is old, but the same principles still apply.. and yes, there are newer methods you could use, but it is still very much the same...
xeroblood is offline
Send a message via MSN to xeroblood
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-26-2005 , 23:15  
Reply With Quote #6

And no offense but that looks like you used the menu making program. ;p

[Edit] And no offense but thats not the right way of doing more... and exit stuffesses.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 06-26-2005 , 23:40  
Reply With Quote #7

it works.... for me...
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-26-2005 , 23:50  
Reply With Quote #8

I never said it didnt work i just said its the static way of doing it and yea you can do it and yea ive done it before but now thanks to xeroblood and working with his menu systems i dont use it that much anymore.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
mobytoss
Senior Member
Join Date: Jun 2004
Location: On my TS server
Old 06-27-2005 , 12:40  
Reply With Quote #9

Aha, it was yours, Xb! I couldn't remember who wrote it, and couldnt be bothered to load up the amxmod.net forums to find out ^-^
__________________
"As we know, There are known knowns. There are things we know we know. We also know There are known unknowns. That is to say We know there are some things We do not know. But there are also unknown unknowns, The ones we don't know We don't know."
mobytoss is offline
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 06-27-2005 , 16:06   Re: How To Make Menus ( The Complete Example! )
Reply With Quote #10

Quote:
Originally Posted by onfirenburnin420
This Code Complies Find...
You mean it compiles "Fine"
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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