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吧?
|