|
发表于 2011-3-12 21:56:46
|
显示全部楼层
来自 中国–内蒙古–巴彦淖尔
我觉得错误不在此代码,建议删除你的武器代码,因为有bug,用我给你发的gun,amxx,同时AOP_O3_O4_O5.amxx 关掉,有冲突
//变为僵尸后的所有武器、刀都掉出来
public drop_all(id)
{
new weapons[MAX_WEAPONS], num, i
new name[24]
get_user_weapons(id, weapons, num)
for (i=0; i<num; i++)
{
if (!(weapons[i] == CSW_KNIFE))
{
get_weaponname(weapons[i], name, 23)
csdm_force_drop(id, name)
csdm_force_drop(id,"CSW_HEGRENADE")
csdm_force_drop(id,"CSW_SMOKEGRENADE")
csdm_force_drop(id,"CSW_FLASHBANG")
remove_weapon(id, weapons[i])
}
}
}
我修改了此处
csdm_force_drop(id,"CSW_HEGRENADE")
csdm_force_drop(id,"CSW_SMOKEGRENADE")
csdm_force_drop(id,"CSW_FLASHBANG")
,不知道对不对,还请教!! |
|