Raised This Month: $ Target: $400
 0% 

Buyammo in old buymenu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shine771
Senior Member
Join Date: Jun 2007
Old 04-09-2009 , 08:15   Buyammo in old buymenu
Reply With Quote #1

I'm trying to hook when player buys primary or secondary ammo through oldstyle buymenu. Currently i'm hooking these:
PHP Code:
register_clcmd("buyammo1","blockAmmo1")
register_clcmd("buyammo2","blockAmmo2")
register_clcmd("primammo","blockAmmo1")
register_clcmd("secammo","blockAmmo2"
Everything is working fine with console commands and vgui buymenu. But when i buy ammo through the oldstyle buy menu, it doesn't catch it. Is there a another command for buying ammo? I was able to hook when player opens the oldstyle buymenu, but i got no idea how to check what item he selects from the menu, and i don't want to remake the whole oldstyle buymenu...
Thanks.
shine771 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode