stock fm_get_weapon_silen(index) { new silencemode = get_pdata_int(index, 74, 4), weapon = get_pdata_int(index, 43, 4); if (weapon == CSW_USP && silencemode & (1<<0)) return 1; if (weapon == CSW_M4A1 && silencemode & (1<<2)) return 1; return 0; }
下面是引用 andyt0621 于 2014-12-29 20:40 发表的 : 复制程式 stock fm_get_weapon_silen(index) { new silencemode = get_pdata_int(index, 74, 4), weapon = get_pdata_int(index, 43, 4); if (weapon == CSW_USP && silencemode & (1<<0)) return 1; if (weapon == CSW_M4A1 && silencemode & (1<<2)) return 1; return 0; }
static weap_id weap_id = get_user_weapon(attacker) if (weap_id == CSW_USP || weap_id == CSW_M4A1) { if (fm_get_weapon_silen(attacker)) { damage *= 1.1 client_print(attacker, print_chat, "增加伤害") SetHamParamFloat(4, damage) } }