Raised This Month: $ Target: $400
 0% 

Hook Menu help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 04-08-2005 , 21:33   Hook Menu help
Reply With Quote #1

i don't know what's wrong with it I made a lot of menus in it but if i look in game and type amx_hookonmenu i see the menu and click 1 it works good but when i want to get there with the main menu I type amx_hookmenu and get the thing but then i want to go to hook on menu i push 1 and it disapears don't know what i did wrong
Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Hook Menu","1.0","[iwek]Nightscream")     register_clcmd("amx_hookmenu","CmdHookMenu",ADMIN_MENU, "- Displays the hookmenu")     register_clcmd("amx_hookmenu2","CmdHookMenu2",ADMIN_MENU,"- Displays the Hookmenu2")     register_clcmd("amx_hookonmenu","CmdHookOnMenu",ADMIN_MENU,"- Displays the hook on and off menu")     register_clcmd("amx_hookSkymenu","CmdHookSkyMenu",ADMIN_MENU,"- Displays the sky menu")     register_clcmd("amx_hookSoundmenu","CmdHookSoundMenu",ADMIN_MENU,"- Displays the sound menu")     register_clcmd("amx_HookPlayersmenu","CmdHookPlayersMenu",ADMIN_MENU,"- Displays the players menu")     register_clcmd("amx_HookWallsmenu","CmdHookWallsMenu",ADMIN_MENU,"- Displays the walls only menu")     register_clcmd("amx_HookColormenu","CmdHookColorMenu",ADMIN_MENU,"- Displays the color menu")     register_clcmd("amx_HookInstantmenu","CmdHookInstantMenu",ADMIN_MENU,"- Displays the instant menu")     register_clcmd("amx_HookSwingmenu","CmdHookSwingMenu",ADMIN_MENU,"- Displays the swing menu")     register_clcmd("amx_HookWeaponmenu","CmdHookWeaponMenu",ADMIN_MENU,"- Displays the weapon menu")     register_clcmd("amx_HookUsekeymenu","CmdHookUsekeyMenu",ADMIN_MENU,"- Displays the usekey menu")     register_menucmd(register_menuid("Hook Menu"),1023,"actionHookmenu")     register_menucmd(register_menuid("Hook Menu2"),1023,"actionHookmenu2")     register_menucmd(register_menuid("Hook on and off Menu"),1023,"actionHookonmenu")     register_menucmd(register_menuid("Hook Sky Menu"),1023,"actionHookSkymenu")     register_menucmd(register_menuid("Hook Sound Menu"),1023,"actionHookSoundmenu")     register_menucmd(register_menuid("Hook Players Menu"),1023,"actionHookPlayersmenu")     register_menucmd(register_menuid("Hook Walls Menu"),1023,"actionHookWallsmenu")     register_menucmd(register_menuid("Hook Color Menu"),1023,"actionHookColormenu")     register_menucmd(register_menuid("Hook Instant Menu"),1023,"actionHookInstantmenu")     register_menucmd(register_menuid("Hook Swing Menu"),1023,"actionHookSwingmenu")     register_menucmd(register_menuid("Hook Weapon Menu"),1023,"actionHookWeaponmenu")     register_menucmd(register_menuid("Hook Usekey Menu"),1023,"actionUsekeymenu")     return PLUGIN_CONTINUE } /*-------------------------------------Main Menu------------------------------------------------*/ public actionHookmenu(id, key) {     switch(key) {         case 0: {              client_cmd(id,"CmdHookOnMenu")         }         case 1: {             client_cmd(id,"CmdHookSkyMenu")         }         case 3: {             client_cmd(id,"CmdHookSoundMenu)         }         case 4: {             client_cmd(id,"CmdHookPlayersMenu")         }         case 5: {             client_cmd(id,"CmdHookWallsMenu")         }         case 6: {             client_cmd(id,"CmdHookColorMenu")         }         case 7: {             client_cmd(id,"CmdHookInstantMenu")         }         case 8: {             client_cmd(id,"CmdHookSwingMenu")         }         case 9: {             client_cmd(id,"CmdHookMenu2")         }     }     return PLUGIN_CONTINUE } public CmdHookMenu(id, level, cid) {     if (!cmd_access(id, level, cid, 1))     return PLUGIN_HANDLED           new menu[256]     format(menu,255,"\yHookmod menu^n^n\w1.Hook on and off menu^n\w2.Hook Sky menu^n\w3.Hook Sound menu^n\w4.Hook Players menu^n\w5.Hook Only Walls menu^n\w6.Hook Color menu^n\w7.Hook Instant menu^n\w8.Hook Swing menu^n\w9.More^n\w0. Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9),menu)           return PLUGIN_CONTINUE } /*--------------------------------------Main Menu2--------------------------------------------------*/ public actionHookmenu2(id,key) {     switch(key) {         case 1: {             client_cmd(id,"CmdHookWeaponMenu)         }         case 2: {             client_cmd(id,"CmdHookUsekeyMenu")         }     }     return PLUGIN_CONTINUE } public CmdHookMenu2(id,cid,level) {     if(!cmd_access(id,cid,level,1))     return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook Menu 2^n^n\w1.Hook Weapon menu^n\w2.Hook Use key Menu^n\w3.Back^n\w0.Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3),menu)     return PLUGIN_CONTINUE } /*---------------------------------Hook on and off Menu---------------------------------------------*/ public actionHookonmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_on",0);             client_print(id,print_chat,"[HookMod]hook is now off");         }         case 1: {             set_cvar_num("DF_hook_on",1);             client_print(id,print_chat,"[HookMod]hook is now on");         }     }     return PLUGIN_CONTINUE } public CmdHookOnMenu(id, level, cid) {     if (!cmd_access(id, level, cid, 1))           return PLUGIN_HANDLED     new menu[256]     format(menu, 255, "\yHook on and off Menu^n^n\w1. Hook off^n\w2. Hook on^n\w3. Back^n\w0. Exit")     show_menu(id,((1<<0)|(1<<1)|(1<<2)|(1<<3)), menu)           return PLUGIN_CONTINUE } /*---------------------------------Hook Sky Menu---------------------------------------------*/ public actionHookSkymenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_sky",0);             client_print(id,print_chat,"[HookMod]players can't attach hooks on to the Sky");         }         case 1: {             set_cvar_num("DF_hook_sky",1);             client_print(id,print_chat,"[HookMod]players can attach hooks on to the Sky");         }     }     return PLUGIN_CONTINUE } public CmdHookSkyMenu(id, level, cid) {     if (!cmd_access(id, level, cid, 1))           return PLUGIN_HANDLED     new menu[256]     format(menu, 255, "\yHook Sky Menu^n^n\w1. Hook Sky off^n\w2. Hook Sky on^n\w3. Back^n\w0. Exit")     show_menu(id,((1<<0)|(1<<1)|(1<<2)|(1<<3)), menu)           return PLUGIN_CONTINUE } /*---------------------------------Hook Sound Menu---------------------------------------------*/ public actionHookSoundmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_sound",0)             client_print(id,print_chat,"[HookMod]the hook will not make noise when it attaches to something")         }         case 1: {             set_cvar_num("DF_hook_sound",1)             client_print(id,print_chat,"[HookMod]the hook will make noise when it attaches to something")         }     }     return PLUGIN_CONTINUE } public CmdHookSoundMenu(id,level,cid) {     if (!cmd_access(id,level,cid,1))     return PLUGIN_HANDLED         new menu[256]     format(menu,255, "\yHook Sound Menu^n^n\w1. Hook Sound off^n\w2. Hook Sound on^n\w3. Back^n\w0. Exit")     show_menu(id,((1<<0)|(1<<1)|(1<<2)|(1<<3)),menu)         return PLUGIN_CONTINUE } /*---------------------------------Hook Players Menu---------------------------------------------*/ public actionHookPlayersmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_players",0)             client_print(id,print_chat,"[HookMod]Players can't attach hooks to other players")         }         case 1: {             set_cvar_num("DF_hook_players",1)             client_print(id,print_chat,"[HookMod]Players can attach hooks to other players")         }     }     return PLUGIN_CONTINUE } public CmdHookPlayersMenu(id,level,cid) {     if (!cmd_access(id,level,cid,1))         return PLUGIN_HANDLED     new menu[256]     format(menu,255, "\yHook Players Menu^n^n\w1.Hook Players off^n\w2.Hook Players on^n\w3.Back^n\w0.Exit")     show_menu(id,((1<<0)|(1<<1)|(1<<2)|(1<<3)),menu)         return PLUGIN_CONTINUE } /*---------------------------------Hook Walls Menu---------------------------------------------*/ public actionHookWallsmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_onlywalls",0)             client_print(id,print_chat,"[HookMod]You can hook to everything")         }         case 1: {             set_cvar_num("DF_hook_onlywalls",1)             client_print(id,print_chat,"[HookMod]Only walls can be hooked to")         }     }     return PLUGIN_CONTINUE } public CmdHookWallsMenu(id,level,cid) {     if(!cmd_access(id,level,cid,1))     return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook Only Walls Menu^n^n\w1.Hook Only Walls off^n\w2.Hook Only Walls on^n\w3.Back^n\w0.Exit")     show_menu(id,((1<<0)|(1<<1)|(1<<2)|(1<<3)),menu)     return PLUGIN_CONTINUE } /*---------------------------------Hook Color Menu---------------------------------------------*/ public actionHookColormenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_color",0)             client_print(id,print_chat,"[HookMod]the hook color is white")         }         case 1: {             set_cvar_num("DF_hook_color",1)             client_print(id,print_chat,"[HookMod]the hook has a color based on team")         }     }     return PLUGIN_CONTINUE } public CmdHookColorMenu(id,level,cid) {     if(!cmd_access(id,level,cid,1))         return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook Color Menu^n^n\w1.Hook Color off^n\w2.Hook Color on^n\w3.Back^n\w0.Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3),menu)         return PLUGIN_CONTINUE } /*---------------------------------Hook Instant Menu-------------------------------------------*/ public actionHookInstantmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_instant",0)             client_print(id,print_chat,"[HookMod]")         }         case 1: {             set_cvar_num("DF_hook_instant",1)             client_print(id,print_chat,"[HookMod]the hook instantly attaches to what the player is looking at")         }     }     return PLUGIN_CONTINUE } public CmdHookInstantMenu(id,level,cid) {     if(cmd_access(id,level,cid,1))         return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook InstantMenu^n^n\w1.Hook Instant off^n\w2.Hook Instant on^n\w3.Back^n\w0.Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3),menu)         return PLUGIN_CONTINUE } /*---------------------------------Hook Swing Menu---------------------------------------------*/ public actionHookSwingmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_swing",0)             client_print(id,print_chat,"[HookMod]the hook pulls the player from the location to it")         }         case 1: {             set_cvar_num("DF_hook_swing",1)             client_print(id,print_chat,"[HookMod]the hook swings the player from the attached location to it")         }     }     return PLUGIN_CONTINUE } public CmdHookSwingMenu(id,level,cid) {     if(!cmd_access(id,level,cid,1))         return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook Swing Menu^n^n\w1.Hook Swing off^n\w2.Hook Swing on^n\w3.Back^n\w0.Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3),menu)         return PLUGIN_CONTINUE } /*---------------------------------Hook Weapon Menu---------------------------------------------*/ public actionHookWeaponmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_weapon",0)             client_print(id,print_chat,"[HookMod]the hook don't appear to comes out of the weapon")         }         case 1: {             set_cvar_num("DF_hook_weapon",1)             client_print(id,print_chat,"[HookMod]the hook appears to comes out of the weapon")         }     }     return PLUGIN_CONTINUE } public CmdHookWeaponMenu(id,level,cid) {     if(!cmd_access(id,level,cid,1))         return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook Weapon menu^n^n\w1.Hook Weapon off^n\w2.Hook Weapon on^n\w3.Back^n\w0.Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3),menu)         return PLUGIN_CONTINUE } /*------------------------------------Hook Use Key menu-----------------------------------------*/ public actionHookUsekeymenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_usekey",0)             client_print(id,print_chat,"the hook can't be used by hitting the use key")         }         case 1: {             set_cvar_num("DF_hook_usekey",1)             client_print(id,print_chat,"the hook can be used by hitting the use key")         }     }     return PLUGIN_CONTINUE } public CmdHookUsekeyMenu(id,level,cid) {     if(!cmd_access(id,level,cid,1))     return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook Use Key menu^n^n\w1.Hook Use Key off^n\w2.Hook Use Key on^n\w3.Back^n\w0.Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3),menu)     return PLUGIN_CONTINUE }
__________________
- Bye bye!
nightscreem is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 04-11-2005 , 12:46  
Reply With Quote #2

help pls if you don't get the question just post it here and I will explain it better
__________________
- Bye bye!
nightscreem is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 04-11-2005 , 14:46  
Reply With Quote #3

I think that you should change:
Code:
format(menu,255,"yHookmod menu BLABNLABLA
to
Code:
format(menu,255,"yHook menu
Or pass "Hook menu" to the title parameter. Note that the title parameter will never be displayed, it only tells AMXX what menu this is.
__________________
hello, i am pm
PM is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 04-11-2005 , 18:15  
Reply With Quote #4

thank you i will try it right away

[edit]
nope it didn't work i changed it into
Code:
format(menu,255,"\yHook menu^n^n\w1.Hook on and off menu^n\w2.Hook Sky menu^n\w3.Hook Sound menu^n\w4.Hook Players menu^n\w5.Hook Only Walls menu^n\w6.Hook Color menu^n\w7.Hook Instant menu^n\w8.Hook Swing menu^n\w9.More^n\w0. Exit")
maybe because when i type amx_hookmenu or amx_hookonmenu it says there is no such command but i get the menu but hookonmenu works but hookmenu doesn't
[/edit]
__________________
- Bye bye!
nightscreem is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-11-2005 , 21:34   Re: Hook Menu help
Reply With Quote #5

Quote:
Originally Posted by nightscreem
Code:
// [...]         case 3: {             client_cmd(id,"CmdHookSoundMenu)         } // [...]
You're missing a double-quote (") in your actionHookmenu function..

Maybe that helps..

The syntax highlighter gives it away, just look here, how the colors switch:
Code:
/*-------------------------------------Main Menu------------------------------------------------*/ public actionHookmenu(id, key) {     switch(key) {         case 0: {              client_cmd(id,"CmdHookOnMenu")         }         case 1: {             client_cmd(id,"CmdHookSkyMenu")         }         case 3: {             client_cmd(id,"CmdHookSoundMenu)         }         case 4: {             client_cmd(id,"CmdHookPlayersMenu")         }         case 5: {             client_cmd(id,"CmdHookWallsMenu")         }         case 6: {             client_cmd(id,"CmdHookColorMenu")         }         case 7: {             client_cmd(id,"CmdHookInstantMenu")         }         case 8: {             client_cmd(id,"CmdHookSwingMenu")         }         case 9: {             client_cmd(id,"CmdHookMenu2")         }     }     return PLUGIN_CONTINUE }
xeroblood is offline
Send a message via MSN to xeroblood
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 04-12-2005 , 11:27  
Reply With Quote #6

nope i just posted wrong sry for that but it isn't working i checked again
__________________
- Bye bye!
nightscreem is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-12-2005 , 13:08  
Reply With Quote #7

omg, I just realized what you are doing, you are trying to call secondary menus from a primary menu right?

Well, the way you are going about it, is by having the plugin run another menu command for the player, but you are doing it wrong..

Example of what you are doing:
Code:
// you registered: register_clcmd("amx_hookonmenu","CmdHookOnMenu",ADMIN_MENU,"- Displays the hook on and off menu") // then later you did: client_cmd(id,"CmdHookOnMenu")


but it Should be like:
Code:
// you register: register_clcmd("amx_hookonmenu","CmdHookOnMenu",ADMIN_MENU,"- Displays the hook on and off menu") // Later on, use: client_cmd(id,"amx_hookonmenu")

The client_cmd() function calls a Registered Client Command just like the user would when they type it in console...

You need to fix that in alot of places..
xeroblood is offline
Send a message via MSN to xeroblood
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 04-12-2005 , 16:10  
Reply With Quote #8

the hookmenu2 works now but i can't get hookmenu to work now this is my code
Code:
public actionHookmenu(id,key) {     switch(key) {         case 0: {             client_cmd(id,"amx_hookonmenu")         }         case 1: {             client_cmd(id,"amx_hookskymenu")         }         case 3: {             client_cmd(id,"amx_hooksoundmenu")         }         case 4: {             client_cmd(id,"amx_hookplayersmenu")         }         case 5: {             client_cmd(id,"amx_hookwallsmenu")         }         case 6: {             client_cmd(id,"amx_hookcolormenu")         }         case 7: {             client_cmd(id,"amx_hookinstantmenu")         }         case 8: {             client_cmd(id,"amx_hookswingmenu")         }         case 9: {             client_cmd(id,"amx_hookmenu2")         }     }     return PLUGIN_CONTINUE } public CmdHookMenu2(id,cid,level) {     if(!cmd_access(id,cid,level,1))     return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook menu^n^n\w1. Hook on and off menu^n\w2. Hook Sky menu^n\w3. Hook Sound menu^n\w4. Hook Players menu^n\w5. Hook Only Walls menu^n\w6. Hook Color menu^n\w7. Hook Instant menu^n\w8. Hook Swing menu^n\w9. More^n\w0. Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9),menu)           return PLUGIN_CONTINUE } /*--------------------------------------Main Menu2--------------------------------------------------*/ public actionHookmenu2(id,key) {     switch(key) {         case 0: {             client_cmd(id,"amx_hookweaponmenu")         }         case 1: {             client_cmd(id,"amx_hookusekeymenu")         }     }     return PLUGIN_CONTINUE } public CmdHookMenu2(id,cid,level) {     if(!cmd_access(id,cid,level,1))     return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook Menu 2^n^n\w1.Hook Weapon menu^n\w2.Hook Use key Menu^n\w3.Back^n\w0.Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3),menu)     return PLUGIN_CONTINUE }
__________________
- Bye bye!
nightscreem is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-12-2005 , 18:10  
Reply With Quote #9

you have 2 CmdHookMenu2 functions...

One should be: CmdHookMenu
xeroblood is offline
Send a message via MSN to xeroblood
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 04-12-2005 , 19:04  
Reply With Quote #10

still isn't working
this is my plugin now
Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Hook Menu","1.0","[iwek]Nightscream")     register_clcmd("amx_hookmenu","CmdHookMenu",ADMIN_MENU, "- Displays the hookmenu")     register_clcmd("amx_hookmenu2","CmdHookMenu2",ADMIN_MENU,"- Displays the Hookmenu2")     register_clcmd("amx_hookonmenu","CmdHookOnMenu",ADMIN_MENU,"- Displays the hook on and off menu")     register_clcmd("amx_hookskymenu","CmdHookSkyMenu",ADMIN_MENU,"- Displays the sky menu")     register_clcmd("amx_hooksoundmenu","CmdHookSoundMenu",ADMIN_MENU,"- Displays the sound menu")     register_clcmd("amx_hookplayersmenu","CmdHookPlayersMenu",ADMIN_MENU,"- Displays the players menu")     register_clcmd("amx_hookwallsmenu","CmdHookWallsMenu",ADMIN_MENU,"- Displays the walls only menu")     register_clcmd("amx_hookcolormenu","CmdHookColorMenu",ADMIN_MENU,"- Displays the color menu")     register_clcmd("amx_hookinstantmenu","CmdHookInstantMenu",ADMIN_MENU,"- Displays the instant menu")     register_clcmd("amx_hookswingmenu","CmdHookSwingMenu",ADMIN_MENU,"- Displays the swing menu")     register_clcmd("amx_hookweaponmenu","CmdHookWeaponMenu",ADMIN_MENU,"- Displays the weapon menu")     register_clcmd("amx_hookusekeymenu","CmdHookUsekeyMenu",ADMIN_MENU,"- Displays the usekey menu")     register_menucmd(register_menuid("Hook Menu"),1023,"actionHookmenu")     register_menucmd(register_menuid("Hook Menu2"),1023,"actionHookmenu2")     register_menucmd(register_menuid("Hook on and off Menu"),1023,"actionHookonmenu")     register_menucmd(register_menuid("Hook Sky Menu"),1023,"actionHookSkymenu")     register_menucmd(register_menuid("Hook Sound Menu"),1023,"actionHookSoundmenu")     register_menucmd(register_menuid("Hook Players Menu"),1023,"actionHookPlayersmenu")     register_menucmd(register_menuid("Hook Walls Menu"),1023,"actionHookWallsmenu")     register_menucmd(register_menuid("Hook Color Menu"),1023,"actionHookColormenu")     register_menucmd(register_menuid("Hook Instant Menu"),1023,"actionHookInstantmenu")     register_menucmd(register_menuid("Hook Swing Menu"),1023,"actionHookSwingmenu")     register_menucmd(register_menuid("Hook Weapon Menu"),1023,"actionHookWeaponmenu")     register_menucmd(register_menuid("Hook Usekey Menu"),1023,"actionUsekeymenu")     return PLUGIN_CONTINUE } /*-------------------------------------Main Menu------------------------------------------------*/ public actionHookmenu(id,key) {     switch(key) {         case 0: {             client_cmd(id,"amx_hookonmenu");         }         case 1: {             client_cmd(id,"amx_hookskymenu");         }         case 3: {             client_cmd(id,"amx_hooksoundmenu");         }         case 4: {             client_cmd(id,"amx_hookplayersmenu");         }         case 5: {             client_cmd(id,"amx_hookwallsmenu");         }         case 6: {             client_cmd(id,"amx_hookcolormenu");         }         case 7: {             client_cmd(id,"amx_hookinstantmenu");         }         case 8: {             client_cmd(id,"amx_hookswingmenu");         }         case 9: {             client_cmd(id,"amx_hookmenu2");         }     }     return PLUGIN_CONTINUE } public CmdHookMenu(id,cid,level) {     if(!cmd_access(id,cid,level,1))     return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook menu^n^n\w1. Hook on and off menu^n\w2. Hook Sky menu^n\w3. Hook Sound menu^n\w4. Hook Players menu^n\w5. Hook Only Walls menu^n\w6. Hook Color menu^n\w7. Hook Instant menu^n\w8. Hook Swing menu^n\w9. More^n\w0. Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9),menu)           return PLUGIN_CONTINUE } /*--------------------------------------Main Menu2--------------------------------------------------*/ public actionHookmenu2(id,key) {     switch(key) {         case 0: {             client_cmd(id,"amx_hookweaponmenu");         }         case 1: {             client_cmd(id,"amx_hookusekeymenu");         }     }     return PLUGIN_CONTINUE } public CmdHookMenu2(id,cid,level) {     if(!cmd_access(id,cid,level,1))     return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook Menu 2^n^n\w1.Hook Weapon menu^n\w2.Hook Use key Menu^n\w3.Back^n\w0.Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3),menu)     return PLUGIN_CONTINUE } /*---------------------------------Hook on and off Menu---------------------------------------------*/ public actionHookonmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_on",0);             client_print(id,print_chat,"[HookMod]hook is now off");         }         case 1: {             set_cvar_num("DF_hook_on",1);             client_print(id,print_chat,"[HookMod]hook is now on");         }     }     return PLUGIN_CONTINUE } public CmdHookOnMenu(id, level, cid) {     if (!cmd_access(id, level, cid, 1))           return PLUGIN_HANDLED     new menu[256]     format(menu, 255, "\yHook on and off Menu^n^n\w1. Hook off^n\w2. Hook on^n\w3. Back^n\w0. Exit")     show_menu(id,((1<<0)|(1<<1)|(1<<2)|(1<<3)), menu)           return PLUGIN_CONTINUE } /*---------------------------------Hook Sky Menu---------------------------------------------*/ public actionHookSkymenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_sky",0);             client_print(id,print_chat,"[HookMod]players can't attach hooks on to the Sky");         }         case 1: {             set_cvar_num("DF_hook_sky",1);             client_print(id,print_chat,"[HookMod]players can attach hooks on to the Sky");         }     }     return PLUGIN_CONTINUE } public CmdHookSkyMenu(id, level, cid) {     if (!cmd_access(id, level, cid, 1))           return PLUGIN_HANDLED     new menu[256]     format(menu, 255, "\yHook Sky Menu^n^n\w1. Hook Sky off^n\w2. Hook Sky on^n\w3. Back^n\w0. Exit")     show_menu(id,((1<<0)|(1<<1)|(1<<2)|(1<<3)), menu)           return PLUGIN_CONTINUE } /*---------------------------------Hook Sound Menu---------------------------------------------*/ public actionHookSoundmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_sound",0);             client_print(id,print_chat,"[HookMod]the hook will not make noise when it attaches to something");         }         case 1: {             set_cvar_num("DF_hook_sound",1);             client_print(id,print_chat,"[HookMod]the hook will make noise when it attaches to something");         }     }     return PLUGIN_CONTINUE } public CmdHookSoundMenu(id,level,cid) {     if (!cmd_access(id,level,cid,1))     return PLUGIN_HANDLED         new menu[256]     format(menu,255, "\yHook Sound Menu^n^n\w1. Hook Sound off^n\w2. Hook Sound on^n\w3. Back^n\w0. Exit")     show_menu(id,((1<<0)|(1<<1)|(1<<2)|(1<<3)),menu)         return PLUGIN_CONTINUE } /*---------------------------------Hook Players Menu---------------------------------------------*/ public actionHookPlayersmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_players",0);             client_print(id,print_chat,"[HookMod]Players can't attach hooks to other players");         }         case 1: {             set_cvar_num("DF_hook_players",1);             client_print(id,print_chat,"[HookMod]Players can attach hooks to other players");         }     }     return PLUGIN_CONTINUE } public CmdHookPlayersMenu(id,level,cid) {     if (!cmd_access(id,level,cid,1))         return PLUGIN_HANDLED     new menu[256]     format(menu,255, "\yHook Players Menu^n^n\w1.Hook Players off^n\w2.Hook Players on^n\w3.Back^n\w0.Exit")     show_menu(id,((1<<0)|(1<<1)|(1<<2)|(1<<3)),menu)         return PLUGIN_CONTINUE } /*---------------------------------Hook Walls Menu---------------------------------------------*/ public actionHookWallsmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_onlywalls",0);             client_print(id,print_chat,"[HookMod]You can hook to everything");         }         case 1: {             set_cvar_num("DF_hook_onlywalls",1);             client_print(id,print_chat,"[HookMod]Only walls can be hooked to");         }     }     return PLUGIN_CONTINUE } public CmdHookWallsMenu(id,level,cid) {     if(!cmd_access(id,level,cid,1))     return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook Only Walls Menu^n^n\w1.Hook Only Walls off^n\w2.Hook Only Walls on^n\w3.Back^n\w0.Exit")     show_menu(id,((1<<0)|(1<<1)|(1<<2)|(1<<3)),menu)     return PLUGIN_CONTINUE } /*---------------------------------Hook Color Menu---------------------------------------------*/ public actionHookColormenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_color",0);             client_print(id,print_chat,"[HookMod]the hook color is white");         }         case 1: {             set_cvar_num("DF_hook_color",1);             client_print(id,print_chat,"[HookMod]the hook has a color based on team");         }     }     return PLUGIN_CONTINUE } public CmdHookColorMenu(id,level,cid) {     if(!cmd_access(id,level,cid,1))         return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook Color Menu^n^n\w1.Hook Color off^n\w2.Hook Color on^n\w3.Back^n\w0.Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3),menu)         return PLUGIN_CONTINUE } /*---------------------------------Hook Instant Menu-------------------------------------------*/ public actionHookInstantmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_instant",0);             client_print(id,print_chat,"[HookMod]");         }         case 1: {             set_cvar_num("DF_hook_instant",1);             client_print(id,print_chat,"[HookMod]the hook instantly attaches to what the player is looking at");         }     }     return PLUGIN_CONTINUE } public CmdHookInstantMenu(id,level,cid) {     if(cmd_access(id,level,cid,1))         return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook InstantMenu^n^n\w1.Hook Instant off^n\w2.Hook Instant on^n\w3.Back^n\w0.Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3),menu)         return PLUGIN_CONTINUE } /*---------------------------------Hook Swing Menu---------------------------------------------*/ public actionHookSwingmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_swing",0);             client_print(id,print_chat,"[HookMod]the hook pulls the player from the location to it");         }         case 1: {             set_cvar_num("DF_hook_swing",1);             client_print(id,print_chat,"[HookMod]the hook swings the player from the attached location to it");         }     }     return PLUGIN_CONTINUE } public CmdHookSwingMenu(id,level,cid) {     if(!cmd_access(id,level,cid,1))         return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook Swing Menu^n^n\w1.Hook Swing off^n\w2.Hook Swing on^n\w3.Back^n\w0.Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3),menu)         return PLUGIN_CONTINUE } /*---------------------------------Hook Weapon Menu---------------------------------------------*/ public actionHookWeaponmenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_weapon",0);             client_print(id,print_chat,"[HookMod]the hook don't appear to comes out of the weapon");         }         case 1: {             set_cvar_num("DF_hook_weapon",1);             client_print(id,print_chat,"[HookMod]the hook appears to comes out of the weapon");         }     }     return PLUGIN_CONTINUE } public CmdHookWeaponMenu(id,level,cid) {     if(!cmd_access(id,level,cid,1))         return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook Weapon menu^n^n\w1.Hook Weapon off^n\w2.Hook Weapon on^n\w3.Back^n\w0.Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3),menu)         return PLUGIN_CONTINUE } /*------------------------------------Hook Use Key menu-----------------------------------------*/ public actionHookUsekeymenu(id,key) {     switch(key) {         case 0: {             set_cvar_num("DF_hook_usekey",0);             client_print(id,print_chat,"the hook can't be used by hitting the use key");         }         case 1: {             set_cvar_num("DF_hook_usekey",1);             client_print(id,print_chat,"the hook can be used by hitting the use key");         }         case 2: {             client_cmd(id,"amx_hookmenu")         }     }     return PLUGIN_CONTINUE } public CmdHookUsekeyMenu(id,level,cid) {     if(!cmd_access(id,level,cid,1))     return PLUGIN_HANDLED     new menu[256]     format(menu,255,"\yHook Use Key menu^n^n\w1.Hook Use Key off^n\w2.Hook Use Key on^n\w3.Back^n\w0.Exit")     show_menu(id,(1<<0)|(1<<1)|(1<<2)|(1<<3),menu)     return PLUGIN_CONTINUE }
__________________
- Bye bye!
nightscreem is offline
Reply


Thread Tools
Display Modes

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 10:03.


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