Quote:
Originally Posted by Napoleon_be
are you getting any error logs?
EDIT: Honestly, i think you're using the wrong id to check which grenade u threw. Try using the second param of the native (gid).
|
I think the 2nd param return the grenade entity id, not the weapon id so the 3rd param should be correct
Code:
/**
* Called after a grenade was thrown.
*
* @note Weapon id is one of CSW_HEGRENADE, CSW_SMOKEGRENADE or CSW_FLASHBANG.
*
* @param index Client index
* @param greindex Grenade entity index
* @param wId Weapon id
*
* @noreturn
*/
forward grenade_throw(index, greindex, wId);
__________________