AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Buy events. (https://forums.alliedmods.net/showthread.php?t=94721)

micke1101 06-14-2009 15:34

Buy events.
 
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.

tpt 06-14-2009 15:53

Re: Buy events.
 
What are you trying to do?

micke1101 06-14-2009 15:58

Re: Buy events.
 
See when a player presses B (if thats the chosen button for buymenu) and when he selects the weapon he wants to buy.

tpt 06-14-2009 16:00

Re: Buy events.
 
Quote:

Originally Posted by micke1101 (Post 849000)
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? :)

micke1101 06-14-2009 16:03

Re: Buy events.
 
No
Only when it happens

tpt 06-14-2009 16:07

Re: Buy events.
 
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.

IneedHelp 06-14-2009 17:01

Re: Buy events.
 
You can register the buy command..or the buy menu?

Bugsy 06-14-2009 21:48

Re: Buy events.
 
You can catch when a player purchases items with the Money event.

alan_el_more 06-14-2009 22:03

Re: Buy events.
 
PHP Code:

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

public 
cmd_buy(id)
{
    
// do something


this?

Exolent[jNr] 06-14-2009 23:15

Re: Buy events.
 
You can hook the ShowMenu and VGUIMenu events and filter out what makes it the specific buy menu.


All times are GMT -4. The time now is 13:56.

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