help whit menu
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" |
Re: help whit menu
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! |
Re: help whit menu
ok thx but hou can i make this:
1. armors(i go to armors and then it will show armors) steel armor flame armor |
Re: help whit menu
Have you searched through Functions / DOC?
|
Re: help whit menu
yes i have
|
Re: help whit menu
I'm having same trouble but with different descriptions, so your basicly saying you don't know how to conifgure a menu?
|
Re: help whit menu
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 |
Re: help whit menu
Copy and Paste your code
|
Re: help whit menu
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("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 } } |
| All times are GMT -4. The time now is 11:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.