PDA

View Full Version : SourceMM and item_pickup


Roger Devil
08-07-2006, 08:35
Hi,
on my Metamod-Source Plugin i want to use a specific event from CSS : item_pickup.
However this event isn't being notified on the Source-MM Version of the plugin.
On the standalone version i register this event and get a notification.
Question :
1. Must this event be registered for SourceMM and how ???
2. Are there other events that must be especially registered´???

L. Duke
08-07-2006, 10:04
The sample_mm hooks FireEvent, but FireEvent doesn't get called if no listeners are registered.

Try inheriting from IGameEventListener2 and then registering your plugin as a listener for 'item_pickup'

Check out sample2_mm available on this page (http://wiki.amxmodx.org/index.php/Open_Source_Plugins_%28SourceMM%29) for an example using round_start.

Roger Devil
08-08-2006, 03:05
Thx, that solves my problem