a9872310
|
分享:
▲
▼
Re:怎样改疆尸插件4.0的购买清单,还有可以弄在特殊清单吗?(已补图,已补源码#3
好 步骤一 (删除一开始武器选择列表中武器) 你搜寻// Buy Menu: Primary and Secondary Weapons这段 然后把当中的 new const g_primary_items[][] = { "weapon_galil", "weapon_famas", "weapon_m4a1", "weapon_ak47", "weapon_sg552", "weapon_aug", "weapon_scout", "weapon_m3", "weapon_xm1014", "weapon_tmp", "weapon_mac10", "weapon_ump45", "weapon_mp5navy", "weapon_p90" } (其实这就是一开始的主枪选单) 这个删掉(要注意空格跟逗点的距离) 接下来
步骤二 (新增到特殊武器列表) 你搜寻// Extra Items: Weapons and their costs new const g_extra_names[][] = { "Napalm Nade", "Frost Nade", "Flare", "AWP Magnum Sniper", "M249 Para Machinegun", "SG550 Auto-Sniper", "G3SG1 Auto-Sniper", "mp5(看你要取什么,我只是举例)" }[购买特殊武器列表(武器名称)] new const g_extra_items[][] = { "weapon_hegrenade", "weapon_flashbang", "weapon_smokegrenade", "weapon_awp", "weapon_m249", "weapon_sg550", "weapon_g3sg1", "weapon_mp5navy" }
new const g_extra_costs[] = { 6, 6, 6, 8, 10, 12, 12, 1(举例,要设多少看你) }[购买特殊武器列表中的子弹包数量,意思就是多少子弹包才能买上述对齐的武器]
你看,// Extra Items: Weapons and their costs这行里面的对齐以后你就会发现可以自由新增枪种,如果不想要枪出现在一开始的选单中 就像步骤一的mp5一样
有不懂在问我 你会转amxx吧?
|