AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   still having problems with menu (https://forums.alliedmods.net/showthread.php?t=26899)

-=*HQz=-=mAster nOob=- 04-10-2006 20:35

still having problems with menu
 
ok I got this far, but now, the menu won't even appear at all :? What I mean is when I go to the console (while playing in the server) and I type in the command to open the menu, it says that there is no such command...

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #include <engine> public plugin_init() {     register_plugin("extras", "1.0", "mAster nOob")     register_clcmd("say noob", "saynoob", 0) // <=== say noob command     register_menucmd(register_menuid("menu"), 1023, "giveSkinMenu")     register_menucmd(register_menuid("submenu1"), 1023, "giveSkinSubMenu1")     register_menucmd(register_menuid("submenu2"), 1023, "giveSkinSubMenu2")     register_menucmd(register_menuid("submenu3"), 1023, "giveSkinSubMenu3")     register_clcmd("say giveme", "showSkinMenu", 0) // <== say giveme command } //-------------------------------------------------------------------------------------------------- //Say noob command public saynoob(id) {     new name[32]     get_user_name(id, name, 31)     set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)     show_hudmessage(0,"%s called all of u ppl a noobs! Go kick their ass. =D", name)     client_cmd(0,"spk misc/noob")     return PLUGIN_HANDLED; } //-------------------------------------------------------------------------------------------------- //Skin commands stock showSkinMenu(id) {     new menu[192]     new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3         format(menu, 191, "What skin would you like to buy?^n^n1. Gloves^n2. Knives^n3. Defuser^n4. None")     show_menu(id, keys, menu, -1, "menu") } stock showSkinSubMenu1(id) {     new menu[192]     new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3         format(menu, 191, "What glove skin would you like to buy?^n^n1. Magic Gloves^n2. Reebok Gloves^n3. Nike Gloves^n4. None")     show_menu(id, keys, menu, -1, "submenu1") } stock showSkinSubMenu2(id) {     new menu[192]     new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6|MENU_KEY_7|MENU_KEY_8|MENU_KEY_9         format(menu, 191, "What knife skin would you like to buy?^n^n1. Brass Knuckles^n2. Dildo^n3. Electric Guitar^n4. Katana^n5. Lightsaber^n6. Metal Pipe^n7. Finger^n8. Taser^n9. Wolverine Claws^n0. None")     show_menu(id, keys, menu, -1, "submenu2") } stock showSkinSubMenu3(id) {     new menu[192]     new keys = MENU_KEY_0|MENU_KEY_1     format(menu, 191, "What defuser kit skin would you like?^n^n1. Playboy Bunny^n2. None")     show_menu(id, keys, menu, -1, "submenu3") } public giveSkinMenu(id, key) {         switch ( key ) {         case 0: showSkinSubMenu1(id)         case 1: showSkinSubMenu2(id)         case 2: showSkinSubMenu3(id)         case 3: client_print(id,print_chat,"Type in giveme in console to open this menu anytime.")     }     return PLUGIN_HANDLED } public giveSkinSubMenu1(id, key) {         switch ( key ) {         case 0: give_item(id, "weapon_ak47")         case 1: give_item(id, "weapon_awp")         case 2: give_item(id, "weapon_awp")         case 3: client_print(id,print_chat,"Type in giveme in console to open this menu anytime.")             } } public giveSkinSubMenu2(id, key) {         switch ( key ) {         case 0: entity_set_string(id, EV_SZ_viewmodel, "models/brassknuckels/v_knife_brassknuckels.mdl")         case 1: entity_set_string(id, EV_SZ_viewmodel, "models/dildo/v_knife_dildo.mdl")         case 2: entity_set_string(id, EV_SZ_viewmodel, "models/electricguitar/v_knife_electricguitar.mdl")         case 3: entity_set_string(id, EV_SZ_viewmodel, "models/katana/v_knife_katana.mdl")         case 4: entity_set_string(id, EV_SZ_viewmodel, "models/lightsaber/v_knife_lightsaber.mdl")         case 5: entity_set_string(id, EV_SZ_viewmodel, "models/metalpipe/v_knife_metalpipe.mdl")         case 6: entity_set_string(id, EV_SZ_viewmodel, "models/finger/v_knife_finger.mdl")         case 7: entity_set_string(id, EV_SZ_viewmodel, "models/taser/v_knife_taser.mdl")         case 8: entity_set_string(id, EV_SZ_viewmodel, "models/wolverineclaws/v_knife_wolverineclaws.mdl")         case 9: client_print(id,print_chat,"Type in giveme in console to open this menu anytime.")     } } public giveSkinSubMenu3(id, key) {         switch ( key ) {         case 0: give_item(id, "weapon_awp")         case 1: client_print(id,print_chat,"Type in giveme in console to open this menu anytime.")     } } public plugin_precache() { precache_model("models/brassknuckels/v_knife_brassknuckels.mdl") precache_model("models/dildo/v_knife_dildo.mdl") precache_model("models/electricguitar/v_knife_electricguitar.mdl") precache_model("models/katana/v_knife_katana.mdl") precache_model("models/lightsaber/v_knife_lightsaber.mdl") precache_model("models/lightsaber/v_knife_r_lightsaber.mdl") precache_model("models/metalpipe/v_knife_metalpipe.mdl") precache_model("models/finger/v_knife_finger.mdl") precache_model("models/taser/v_knife_taser.mdl") precache_model("models/wolverineclaws/v_knife_wolverineclaws.mdl") }

so yeah.. im in a dilemma ryte now?? i guess lol but so, i posted one before too with this menu problem, you can check that out if you like. i copied and pasted the plugin from my old post as well, and when i tried it, the menu never showed up... i played around with it too but still nothing -_-'

btw what are the commands for changing the defuser and glove/hand skins???????????????

FatalisDK 04-11-2006 01:47

Hand/glove skins are actually in the weapon model file aswell as the weapon.


All times are GMT -4. The time now is 16:37.

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