View Single Post
Silencer123
Veteran Member
Join Date: Jul 2006
Old 04-27-2010 , 17:12   Re: Is it possible to hook the grenade explode event?
Reply With Quote #2

Include:
#include <hamsandwich>

In plugin_init():
RegisterHam(Ham_Think, "grenade", "fw_ThinkGrenade")

Somewhere else:
public fw_ThinkGrenade(entity) {
// [...]
}

Taken from: http://forums.alliedmods.net/showthread.php?t=74905
Found in 10 Seconds with the Forums' search function. D;
Note that the above is not the whole secret. Conduct your own research on the plugin linked to above. ;)
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 04-27-2010 at 17:15.
Silencer123 is offline