Hi all,
For my mod i need Zom shop, I have made shop but do not work.
I need help as often ^ ^
Who can tell me please its not working?
Code:itemDef { name "window" visible 1 rect 16 68 0 0 origin ORIGIN_QUICKMESSAGEWINDOW forecolor 1 1 1 1 textfont UI_FONT_NORMAL textscale .24 textaligny 8 text "4. ^2H^7unter ^2S^7hop" decoration } execKey "4" { close quickmessage; open shoph }in _menus.Code:#include "ui_mp/menudef.h" #define ORIGIN_QUICKMESSAGETAB 32 224 #define ORIGIN_QUICKMESSAGEWINDOW 32 256 { menuDef { name "shoph" visible 0 fullscreen 0 rect 0 0 640 480 focuscolor 1 1 1 1 disablecolor 0 0 0 0 style WINDOW_STYLE_EMPTY onOpen { setDvar cl_bypassMouseInput "1" } onClose { setDvar cl_bypassMouseInput "0" } // WINDOW BACKGROUND itemDef { name "window_background" visible 1 rect 0 0 224 192 origin ORIGIN_QUICKMESSAGEWINDOW style WINDOW_STYLE_FILLED forecolor 1 1 1 1 backcolor 0 0 0 0.7975 decoration } // WINDOW LINES itemDef { name "window_lines" visible 1 rect 3 0 2 187 origin ORIGIN_QUICKMESSAGEWINDOW style WINDOW_STYLE_FILLED backcolor 1 1 1 .125 decoration } itemDef { name "window_lines" visible 1 rect 219 0 2 187 origin ORIGIN_QUICKMESSAGEWINDOW style WINDOW_STYLE_FILLED backcolor 1 1 1 .125 decoration } itemDef { name "window_lines" visible 1 rect 5 0 214 2 origin ORIGIN_QUICKMESSAGEWINDOW style WINDOW_STYLE_FILLED backcolor 1 1 1 .125 decoration } itemDef { name "window_lines" visible 1 rect 3 187 218 2 origin ORIGIN_QUICKMESSAGEWINDOW style WINDOW_STYLE_FILLED backcolor 1 1 1 .125 decoration } // TITLE itemDef { name "title" visible 1 rect 0 0 224 32 origin ORIGIN_QUICKMESSAGETAB style WINDOW_STYLE_FILLED forecolor 1 1 1 1 backcolor 0 0 0 0.7975 type ITEM_TYPE_TEXT text "^2H^7unter ^2S^7hop" textfont UI_FONT_NORMAL textscale .24 textalignx 112 textaligny 24 textalign ITEM_ALIGN_CENTER decoration } itemDef { name "title_quickmessage_gray" visible 1 rect 3 3 218 29 origin ORIGIN_QUICKMESSAGETAB style WINDOW_STYLE_FILLED backcolor 1 1 1 .125 decoration } itemDef { name "window" visible 1 rect 16 20 0 0 origin ORIGIN_QUICKMESSAGEWINDOW forecolor 1 1 1 1 textfont UI_FONT_NORMAL textscale .24 textaligny 8 text "1. 1 ^2G^7renade ^2[^7400^2]" decoration } execKey "1" { scriptMenuResponse "1"; close shoph; } itemDef { name "window" visible 1 rect 16 20 0 0 origin ORIGIN_QUICKMESSAGEWINDOW forecolor 1 1 1 1 textfont UI_FONT_NORMAL textscale .24 textaligny 8 text "1. 3 ^2G^7renade ^2[^71000^2]" decoration } execKey "2" { scriptMenuResponse "2"; close shoph; } itemDef { name "window" visible 1 rect 16 148 0 0 origin ORIGIN_QUICKMESSAGEWINDOW forecolor 1 1 1 1 textfont UI_FONT_NORMAL textscale .24 textaligny 8 text "@QUICKMESSAGE_ESC_EXIT" decoration } } }
Code:if(menu == game["menu_quickcommands"]) maps\mp\gametypes\_quickmessages::quickcommands(response); else if(menu == game["menu_quickstatements"]) maps\mp\gametypes\_quickmessages::quickstatements(response); else if(menu == game["menu_quickresponses"]) maps\mp\gametypes\_quickmessages::quickresponses(response); else if(menu == game["menu_shoph"]) maps\mp\gametypes\_quickmessages::shoph(response);
Now the script For Hunter (argent =money(Code:init() { game["menu_quickcommands"] = "quickcommands"; game["menu_quickstatements"] = "quickstatements"; game["menu_quickresponses"] = "quickresponses"; game["menu_shoph"] = "shoph"; precacheMenu(game["menu_quickcommands"]); precacheMenu(game["menu_quickstatements"]); precacheMenu(game["menu_quickresponses"]); precacheMenu(game["menu_shoph"]); precacheHeadIcon("talkingicon"); }
ThxCode:shoph(response) { if(!isdefined(self.pers["team"]) || self.pers["team"] == "spectator" || isdefined(self.spamdelay)) return; self.spamdelay = true; if(self.pers["team"] == "allies") { switch(game["allies"]) { case "american": switch(response) { case "1": if(argent >= 400) { self takeWeapon("frag_grenade_american_mp"); self giveWeapon("frag_grenade_american_mp"); self setWeaponClipAmmo("frag_grenade_amercican_mp", 1); self iprintlnbold("^2Y^7ou ^2G^7et 1 ^2N^7ades ^2[^4-400^2]"); } else if(self.argent < 400) { self iprintlnbold("^2Y^7ou ^2M^7ust ^2H^7ave 400 ^2M^7oney"); } break; case "2": if(argent >= 1000) { self takeWeapon("frag_grenade_american_mp"); self giveWeapon("frag_grenade_american_mp"); self setWeaponClipAmmo("frag_grenade_amercican_mp", 3); self iprintlnbold("^2Y^7ou ^2G^7et 3 ^2N^7ades ^2[^4-1000^2]"); } else if(self.argent < 1000) { self iprintlnbold("^2Y^7ou ^2M^7ust ^2H^7ave 1000 ^2M^7oney"); } break; } } } }![]()

Reply With Quote
Thank You Earlilboy i use it XD