counter-strike grenades are a mystery!
Code:
public plugin_init() {
register_think("grenade","think_grenade");
}
public think_grenade(ent) {
new hack = get_pdata_int(ent,118);
new oldhack = entity_get_int(ent,EV_INT_iuser1);
if(hack && !oldhack) {
// here comes explosion
}
entity_set_int(ent,EV_INT_iuser1,hack);
}
you'll have to filter out c4 from this (they are considered grenades), but other than that it should alert one "think" (< 0.1 second) before a grenade explodes. you should also be able to grab EV_ENT_owner as usual.
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."