Thread: [Solved] give grenade to player
View Single Post
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 06-10-2021 , 21:34   Re: give grenade to player
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
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);
__________________
My plugin:

Last edited by Celena Luna; 06-10-2021 at 21:38.
Celena Luna is offline