give grenade to player
hi! how to use fun's give_item() properly? I'm trying to give grenades to player when he throwing 'em but it gives me only flashbangs. Can someone help me and tell where are errors here?
Code:
#include <amxmodx> |
Re: give grenade to player
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). |
Re: give grenade to player
Quote:
Code:
|
Re: give grenade to player
I was thinking the exact same thing, but it wouldn't be the first time a bug occurs. Wouldn't hurt to give it a try. and log your messages....
|
Re: give grenade to player
i think a small delay would be an easy fix for this
|
Re: give grenade to player
Quote:
Quote:
|
Re: give grenade to player
Quote:
I think because you can only carry 1 HE/Smoke so you can't get anymore than 1 since when throwing, it technically still carrying that nade. PHP Code:
|
Re: give grenade to player
Quote:
|
Re: give grenade to player
Quote:
And yes, as @Celena Luna said, the bpammo amount has to be 2 in order to work properly |
Re: give grenade to player
Or a simple task would also work. Not sure what the best option is in this case though.
|
All times are GMT -4. The time now is 22:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.