Raised This Month: $ Target: $400
 0% 

Buy events.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 06-14-2009 , 15:34   Buy events.
Reply With Quote #1

Hi i dont where i can find all events so i wonder if you can tell if theres a list.
But if it dont whats the events for opening the buy menu and the event when a player choses something in there?

Thanks as always.
micke1101 is offline
tpt
Member
Join Date: Jun 2009
Location: Scripting help section
Old 06-14-2009 , 15:53   Re: Buy events.
Reply With Quote #2

What are you trying to do?
tpt is offline
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 06-14-2009 , 15:58   Re: Buy events.
Reply With Quote #3

See when a player presses B (if thats the chosen button for buymenu) and when he selects the weapon he wants to buy.
micke1101 is offline
tpt
Member
Join Date: Jun 2009
Location: Scripting help section
Old 06-14-2009 , 16:00   Re: Buy events.
Reply With Quote #4

Quote:
Originally Posted by micke1101 View Post
See when a player presses B (if thats the chosen button for buymenu) and when he selects the weapon he wants to buy.
So are you trying to detect what weapon was bought?
tpt is offline
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 06-14-2009 , 16:03   Re: Buy events.
Reply With Quote #5

No
Only when it happens
micke1101 is offline
tpt
Member
Join Date: Jun 2009
Location: Scripting help section
Old 06-14-2009 , 16:07   Re: Buy events.
Reply With Quote #6

http://wiki.amxmodx.org/Half-Life_1_Game_Events - List of events..

If you would explain more what you're trying to do.. Because there is no event for that.

Last edited by tpt; 06-14-2009 at 16:13.
tpt is offline
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 06-14-2009 , 17:01   Re: Buy events.
Reply With Quote #7

You can register the buy command..or the buy menu?
__________________
IneedHelp is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-14-2009 , 21:48   Re: Buy events.
Reply With Quote #8

You can catch when a player purchases items with the Money event.
__________________
Bugsy is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 06-14-2009 , 22:03   Re: Buy events.
Reply With Quote #9

PHP Code:
public plugin_init()
{
     
// ...
     
register_clcmd("buy""cmd_buy")
}

public 
cmd_buy(id)
{
    
// do something

this?
__________________
alan_el_more is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-14-2009 , 23:15   Re: Buy events.
Reply With Quote #10

You can hook the ShowMenu and VGUIMenu events and filter out what makes it the specific buy menu.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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 13:56.


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