您好
若枪枝太多 您要删除的话
恩.... 举例来说
----------------------------------------------------
case 1:
{
drop_weapons(id, 1)
fm_give_item(id, "weapon_mp5navy")
fm_give_item(id, "ammo_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:
{
drop_weapons(id, 1)
fm_give_item(id, "weapon_sg552")
fm_give_item(id, "ammo_556nato")
fm_give_item(id, "ammo_556nato")
fm_give_item(id, "ammo_556nato")
fm_give_item(id, "ammo_556nato")
client_print(0, print_center, "%s 捡到一把SIG552 近狙型步枪", name)
} case 3:
{
drop_weapons(id, 1)
fm_give_item(id, "weapon_mac10")
fm_give_item(id, "ammo_45acp")
fm_give_item(id, "ammo_45acp")
fm_give_item(id, "ammo_45acp")
fm_give_item(id, "ammo_45acp")
client_print(0, print_center, "%s 捡到一把MAC10 小型冲锋枪", name)
}
----------------------------------------------------
把红色粗体字部份 删除
而 编号 3 的部份 就改成 编号 2
----------------------------------------------------
case 1:
{
drop_weapons(id, 1)
fm_give_item(id, "weapon_mp5navy")
fm_give_item(id, "ammo_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 3:
# 3 > 2
{
drop_weapons(id, 1)
fm_give_item(id, "weapon_mac10")
fm_give_item(id, "ammo_45acp")
fm_give_item(id, "ammo_45acp")
fm_give_item(id, "ammo_45acp")
fm_give_item(id, "ammo_45acp")
client_print(0, print_center, "%s 捡到一把MAC10 小型冲锋枪", name)
}
----------------------------------------------------
后面也是 要排序 1.2.3.4..............X
而
new num = random_num(1, 20)
部分
如果您的
case # 剩下 17 项
改成
new num = random_num(1, 17)
这样就行了^^