When you detect the bomb explosion, you can use this stock:
Code:
// VEN
stock fm_cs_get_grenade_type(index) {
if (get_pdata_int(index, 96, 4) & (1<<8))
return CSW_C4;
new bits = get_pdata_int(index, 114, 4);
if (bits & (1<<0))
return CSW_HEGRENADE;
else if (bits & (1<<1))
return CSW_SMOKEGRENADE;
else if (!bits)
return CSW_FLASHBANG;
return 0;
}
__________________