跟着
去cstrike\resource\UI下,找到
BuyPistols_CT.res 警手枪购买菜单
BuyPistols_TER.res 匪徒手枪购买菜单
Classmenu_CT.res 警队伍选人菜单
Classmenu_TER.res 匪徒队伍选人菜单
比如我们想给警添加把你的手枪,那么只要编辑BuyPistols_CT.res即可
所有武器菜单都要写在第一个{和最后一个}之内
那么我们就在最后一个大括号}上面添加如下内容
"。。。-img"
{
"ControlName" "ImagePanel"
"fieldName" "。。。-img"
"xpos" "474"
"ypos" "377"
"wide" "138"
"tall" "48"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
"image" "gfx/vgui/。。。"
"scaleImage" "1"
}
"knife_l-name"
{
"ControlName" "Label"
"fieldName" "。。。-name"
"xpos" "474"
"ypos" "425"
"wide" "138"
"tall" "15"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"labelText" "#nst_wpnname_。。。"
"textAlignment" "center"
"dulltext" "1"
"brighttext" "0"
}
"knife_l-bottom"
{
"ControlName" "Button"
"fieldName" "。。。-bottom"
"xpos" "474"
"ypos" "377"
"wide" "138"
"tall" "63"
"autoResize" "0"
"pinCorner" "2"
"visible" "1"
"enabled" "1"
"tabPosition" "0"
"labelText" ""
"command" "nst_buy_wpn3 。。。"
}
如上,其中多处。。。要写统一,对应之前INI配置文件里的[model]。。。
"xpos""ypos"后面的数字是你这把武器选项所在的坐标位置,不清楚就看其他横竖相同位置的武器坐标
"wide""tall"后面的数字是宽和高,这个改不改都无所谓,看你喜欢
"command"是别人点选这把武器后服务器执行的命令"nst_buy_wpn3 。。。"例如这里就表示你买了把手枪
改完保存退出,你想给土匪的也加上的话,那就去改BuyPistols_TER.res方法一样
跟着继续