2.问题的话
复制程式
case 1: // 范例 编号 1
{
if(zp_get_user_survivor(id)) ←加上这行1
return PLUGIN_CONTINUE; ←加上这行2
drop_weapons(id, 1) // 丢弃枪枝 1为主枪 2为小枪
fm_give_item(id, "weapon_mp5navy") // 捡取枪枝为 MP5
fm_give_item(id, "ammo_9mm") // 子弹类型 9mm
fm_give_item(id, "ammo_9mm")
fm_give_item(id, "ammo_9mm")
fm_give_item(id, "ammo_9mm")
client_print(0, print_center, "%s 捡到一把MP5 冲锋枪", name) // 捡取后的提示
} 然后在每个case也加上那2行应该就行了
我关闭了survivor的设定,不能测试.......
最后在
复制程式
default: //预设
{
client_print(0, print_center, "%s 真是倒楣,箱子里没有任何东西", name)
}
}
return PLUGIN_CONTINUE; ←加上这个
}