getting weapons
PHP Code:
For eg I try to buy a HE buy with the script above (type /ammoh) and I'm holding a USP but I already have a HE. It still gives me a HE even though I'm maxed out on it. I want something to check the whole player if he has a weapon or not CARRYING it not currently HOLDING it. |
Re: getting weapons
I think you might find what you searching for here: http://www.amxmodx.org/doc/source/fu...er_weapons.htm
;) greetz regalis |
Re: getting weapons
Oh cheers!
Never used that function before. Can you show me how to use it with the example above? |
Re: getting weapons
I never used it too :P
But maybe something like this: Code:
new Weapons[32]PS: thx 4 karma :) |
Re: getting weapons
PHP Code:
When I have a HE already. (Doesn't matter if I have it in my hands or not) and I type the command to buy. These 2 messages display. [AmxX] You already own one! [AmxX] Thank you for using Emergency Ammo! AND it still charges me money even though I have one. |
Re: getting weapons
I think you should use a bool with that you can trace if the player have already a nade ;)
try this: Code:
public cmd_ammoh (id) |
Re: getting weapons
For this case, My juvenile idea of checking user has especial weapon:
PHP Code:
|
| All times are GMT -4. The time now is 20:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.