CS1.6怎麼用特殊武器?只為趕回家2021-06-26 06:50:49

修改主外掛zombie_plague40。sma(大部分外掛都是這名字)

查詢程式碼:

// Extra Items: Weapons and their costs

new const g_extra_names[][] = { “燃燒彈”, “冰凍彈”, “照明彈”, “AWP重型狙擊槍”, “M249班用機槍”, “SG550連發狙擊槍”, “G3SG1連發狙擊槍” }//這裡的程式碼可以新增你需要的武器名字

new const g_extra_items[][] = { “weapon_hegrenade”, “weapon_flashbang”, “weapon_smokegrenade”, “weapon_awp”, “weapon_m249”, “weapon_sg550”, “weapon_g3sg1” }//填寫你加入武器的模型

new const g_extra_costs[] = { 3, 3, 3, 6, 8, 7, 7 }//別忘了設定價格

上面是在特殊道具里加武器的方法。修改後儲存無8—room格式在編譯成amxx覆蓋原始檔就好了。進入遊戲後開啟道具就有你新加的武器了。