ok i got my menu thing working...
How do u convert 2 menus together??? i cant get it to work
Ill show u both menus
This menu is the one that comes up first
Code:
/* Copyright (C) Burnzy*/
#include <amxmodx>
#include <amxmisc>
#include <fun>
/*****************Declare Choose Player To Glow*****************/
public plugin_init()
{
register_plugin("amx_glowmenu","v1.0","Burnzy")
register_menucmd(register_menuid("Choose Player To Glow"),1023,"GlowMenuChoice")
register_concmd("amx_glowmenu", "amx_glowmenu", ADMIN_LEVEL_C, "amx_glowmenu")
register_clcmd("amx_glowmenu", "amx_glowmenu")
register_clcmd("say glowmenu", "amx_glowmenu")
}
/*****************Function that calls Choose Player To Glow*****************/
public amx_glowmenu(id)
{
if (!(get_user_flags(id)&ADMIN_LEVEL_C)) {
client_print(id, print_chat, "You Do Not Have Access To The Command.")
return PLUGIN_HANDLED
}
GlowMenuMenu(id)
return PLUGIN_HANDLED
}
/*****************Menu Code for Choose Player To Glow*****************/
public GlowMenuMenu(id)
{
if (is_user_alive(id)) {
new menuBody[1024]
new key
format(menuBody, 1023, "\wChoose Player To Glow\W^n^n\y1.\w %s^n\y2.\w %s^n\y3.\w %s^n\y4.\w %s^n\y5.\w %s^n\y6.\w %s^n\y7.\w %s^n\y8.\w %s^n\y9.\w %s^n\y0.\w Exit.",g_Players,g_Players,g_Players,g_Players,g_Players,g_Players,g_Players,g_Players,g_Players)
key = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
show_menu(id, key, menuBody)
}
}
/*****************Choose Player To Glow Choice Switch*****************/
public GlowMenuChoice(id, key)
{
switch(key)
{
case 0:
{
if (!(get_user_flags(id)&ADMIN_LEVEL_C)) {
client_print(id, print_chat, "You Do Not Have Access To The Command.")
return PLUGIN_HANDLED
}
GlowMenu2Choice(id, key)
}
case 1:
{
if (!(get_user_flags(id)&ADMIN_LEVEL_C)) {
client_print(id, print_chat, "You Do Not Have Access To The Command.")
return PLUGIN_HANDLED
}
GlowMenu2Choice(id, key)
}
case 2:
{
if (!(get_user_flags(id)&ADMIN_LEVEL_C)) {
client_print(id, print_chat, "You Do Not Have Access To The Command.")
return PLUGIN_HANDLED
}
GlowMenu2Choice(id, key)
}
case 3:
{
if (!(get_user_flags(id)&ADMIN_LEVEL_C)) {
client_print(id, print_chat, "You Do Not Have Access To The Command.")
return PLUGIN_HANDLED
}
GlowMenu2Choice(id, key)
}
case 4:
{
if (!(get_user_flags(id)&ADMIN_LEVEL_C)) {
client_print(id, print_chat, "You Do Not Have Access To The Command.")
return PLUGIN_HANDLED
}
GlowMenu2Choice(id, key)
}
case 5:
{
if (!(get_user_flags(id)&ADMIN_LEVEL_C)) {
client_print(id, print_chat, "You Do Not Have Access To The Command.")
return PLUGIN_HANDLED
}
GlowMenu2Choice(id, key)
}
case 6:
{
if (!(get_user_flags(id)&ADMIN_LEVEL_C)) {
client_print(id, print_chat, "You Do Not Have Access To The Command.")
return PLUGIN_HANDLED
}
GlowMenu2Choice(id, key)
}
case 7:
{
if (!(get_user_flags(id)&ADMIN_LEVEL_C)) {
client_print(id, print_chat, "You Do Not Have Access To The Command.")
return PLUGIN_HANDLED
}
GlowMenu2Choice(id, key)
}
case 8:
{
if (!(get_user_flags(id)&ADMIN_LEVEL_C)) {
client_print(id, print_chat, "You Do Not Have Access To The Command.")
return PLUGIN_HANDLED
}
GlowMenu2Choice(id, key)
}
case 9:
{
return PLUGIN_HANDLED
}
}
}
This is the menu that comes up after u click one:
Code:
/* Copyright (C) Burnzy*/
#include <amxmodx>
#include <amxmisc>
#include <fun>
/*****************Declare Glow Color*****************/
public plugin_init()
{
register_plugin(""amx_glowmenu2""v1.0"Burnzy")
register_menucmd(register_menuid("Pick the Glow Color"),1023,"GlowMenu2Choice")
}
/*****************Function that calls Glow Color*****************/
public (id)
{
if (!(get_user_flags(id)&ADMIN_LEVEL_C)) {
client_print(id, print_chat, "You Do Not Have Access To The Command.")
return PLUGIN_HANDLED
}
GlowMenu2Menu(id)
return PLUGIN_HANDLED
}
/*****************Menu Code for Glow Color*****************/
public GlowMenu2Menu(id)
{
if (is_user_alive(id)) {
new menuBody[1024]
new key
format(menuBody, 1023, "\wGlow Color\W^n^n\y1.\w Red^n\y2.\w Blue^n\y3.\w Purple^n\y4.\w Green^n\y5.\w Agua^n\y6.\w Silver^n\y7.\w Yellow^n\y8.\w Exit.")
key = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)
show_menu(id, key, menuBody)
}
}
/*****************Glow Color Choice Switch*****************/
public GlowMenu2Choice(id, key)
{
switch(key)
{
case 0:
{
client_print(id, print_chat, "ADMIN %s: made %s glow %s",AdminName,VictimName,g_ColorNames[g_Players[VictimID]])
}
case 1:
{
client_print(id, print_chat, "ADMIN %s: made %s glow %s",AdminName,VictimName,g_ColorNames[g_Players[VictimID]])
}
case 2:
{
client_print(id, print_chat, "ADMIN %s: made %s glow %s",AdminName,VictimName,g_ColorNames[g_Players[VictimID]])
}
case 3:
{
client_print(id, print_chat, "ADMIN %s: made %s glow %s",AdminName,VictimName,g_ColorNames[g_Players[VictimID]])
}
case 4:
{
client_print(id, print_chat, "ADMIN %s: made %s glow %s",AdminName,VictimName,g_ColorNames[g_Players[VictimID]])
}
case 5:
{
client_print(id, print_chat, "ADMIN %s: made %s glow %s",AdminName,VictimName,g_ColorNames[g_Players[VictimID]])
}
case 6:
{
client_print(id, print_chat, "ADMIN %s: made %s glow %s",AdminName,VictimName,g_ColorNames[g_Players[VictimID]])
}
case 7:
{
return PLUGIN_HANDLED
}
}
}
I want it so the first menu appears with everyones name in the server.
Once u click a name it goes to the second menu and u pick the color
Then it makes a message and say: Admin BURNZY has made BOB glow YELLOW.
HELP!!!! PLEASE
Note: I didnt add the glow stuff yet until i get the menus working... so dont pay attention to that.
__________________