Need help with function - tfc_isgrenade
Im trying to learn small by making a very simple plugin for TFC.
I want the plugin to detect _ if a player has nail grenades _ send a print message that nail grenades cant be used _ empty the players ammo bag from nail grenades I probably do some very stupid things while coding, but im very new to it. I looked at pizzahuts sniper plugin to see how to detect a weapon. It works for switchable weapons but not for grenades. I have this now, it compiles but i dont get any message that nail grenades are carried Code:
I tried get_user_weapon and get_user_ammo, but i cant get them to work. I would be very greatful for any hints in the right direction. Thx |
How about..
1> Check if their class is soldier. 2> Check their secondary grenade count Code:
new grenades = get_pdata_int( id, 15 ); |
| All times are GMT -4. The time now is 16:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.