修改主插件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覆盖源文件就好了。进入游戏后打开道具就有你新加的武器了。