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

help whit menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
exelz
Member
Join Date: Oct 2006
Old 02-12-2007 , 15:39   help whit menu
Reply With Quote #1

i am making a mod and i need a menu code i tryd to make my own but it did not worked
ok i need menu that looks like this

"1.Armors"
"Bronce Armor"
"Steel Armor"
"Fire Armor"
"DaRk Armor"
"Flame Armor"
"2.Weapons"
"Blade"
"Dagger"
"Knife"
"Fire Blade"
"3.Potions"
"HP Potions(20HP)"
"4.Items"
"Berserker"
__________________
exelz is offline
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 02-12-2007 , 15:47   Re: help whit menu
Reply With Quote #2

Search for menu help.
Therefore I have done the searching work for you..
http://djeyl.net/forum/index.php?showtopic=27288
or
http://forums.alliedmods.net/showthr...ht=menu+making
I like the first one better.. But pick which you'd rather!
__________________
i stop around here and there.

Last edited by Da_sk8rboy; 02-12-2007 at 16:06.
Da_sk8rboy is offline
exelz
Member
Join Date: Oct 2006
Old 02-13-2007 , 06:46   Re: help whit menu
Reply With Quote #3

ok thx but hou can i make this:
1. armors(i go to armors and then it will show armors)
steel armor
flame armor
__________________
exelz is offline
Phantom Warrior
BANNED
Join Date: Feb 2007
Location: hello, gaben
Old 02-13-2007 , 06:59   Re: help whit menu
Reply With Quote #4

Have you searched through Functions / DOC?
Phantom Warrior is offline
exelz
Member
Join Date: Oct 2006
Old 02-13-2007 , 07:11   Re: help whit menu
Reply With Quote #5

yes i have
__________________
exelz is offline
Phantom Warrior
BANNED
Join Date: Feb 2007
Location: hello, gaben
Old 02-13-2007 , 07:17   Re: help whit menu
Reply With Quote #6

I'm having same trouble but with different descriptions, so your basicly saying you don't know how to conifgure a menu?
Phantom Warrior is offline
exelz
Member
Join Date: Oct 2006
Old 02-13-2007 , 07:57   Re: help whit menu
Reply With Quote #7

i dotn know hou to that that i go to armors and it will show armors
I am making a mod where are armors and weapons
__________________
exelz is offline
Phantom Warrior
BANNED
Join Date: Feb 2007
Location: hello, gaben
Old 02-13-2007 , 08:02   Re: help whit menu
Reply With Quote #8

Copy and Paste your code
Phantom Warrior is offline
Old 02-13-2007, 08:17
exelz
This message has been deleted by exelz.
exelz
Member
Join Date: Oct 2006
Old 02-13-2007 , 08:19   Re: help whit menu
Reply With Quote #9

include <amxmodx>
#define Keysmenu_1 (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1< <6)|(1<<7)|(1<<|(1<<9) // Keys: 1234567890
#define Keysmenu_2 (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1< <6)|(1<<7)|(1<<|(1<<9) // Keys: 1234567890
public plugin_init() {
register_plugin("Menu","","")
register_cvar("menu","1")
register_clcmd( "Armors","Showmenu_1")
register_clcmd( "Weapons","Showmenu_2")
register_menucmd(register_menuid("Armors"), Keysmenu_1, "Pressedmenu_1")
register_menucmd(register_menuid("Weapons"), Keysmenu_2, "Pressedmenu_2")
}
public Showmenu_1(id) {
show_menu(id, Keysmenu_1, "1: Steel Armor^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) {
/* Vista Mod Menu:
* 1: Steel Armor
* 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
}
}
__________________
exelz is offline
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 00:32.


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