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) } }