图 1.
图 2.
图 3.
图 4.
到CSO-NST\cstrike\addons\amxmodx\configs
打开nst_wpn.ini 加一行[name](刀名子)自己取[model]用到的模组[wpn_change]29[damage]伤害加成[cost]价钱
范例:;[name]Hammer[model]hammer[wpn_change]29[damage]1.095[cost]600
好了后到CSO-NST\cstrike\models\nst_wpn 增加 你的你的模组以范例来说你就加p_hammer.mdl, v_hammer.mdl, w_hammer.mdl
在去CSO-NST\cstrike\gfx\vgui 添加买枪图叫hammer.tga在到CSO-NST\cstrike\sound\weapons 加音效 你进去里面应该就知道怎么加
在到CSO-NST\cstrike\resource\UI 打开BuyPistols_CT.res添加
"hammer-img"
{
"ControlName" "ImagePanel"
"fieldName" "hammer-img"
"xpos" "474"
"ypos" "85"
"wide" "138"
"tall" "48"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "gfx/vgui/hammer"
"scaleImage" "1"
}
"hammer-name"
{
"ControlName" "Label"
"fieldName" "hammer-name"
"xpos" "474"
"ypos" "133"
"wide" "138"
"tall" "15"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"labelText" "#nst_wpnname_hammer"
"textAlignment" "center"
"dulltext" "1"
"brighttext" "0"
}
"hammer-bottom"
{
"ControlName" "Button"
"fieldName" "deserteagle-bottom"
"xpos" "474"
"ypos" "85"
"wide" "138"
"tall" "63"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" ""
"command" "nst_buy_wpn3 hammer"
}
如果要改座标 要自己改
顺便给你CSO-NST的官网
http://forum.gamevn.com/sh...p?t=665502