(Note: The links in the original post don't point to the correct lines anymore. The correct links are
here,
here, and
here.)
If you want to just pass other events that you can get or generate through SourceMod (such as letting other plugins listen for
when players are AFK or
when they send chat messages), you'll want to read up on
forwards.
If you want something specifically like SDKHooks with enums, you just have to retrieve the enum value you passed in and register your function with the appropriate forward. As far as I know, there's no checks to ensure the callback you pass in matches the expected prototype.
Quote:
Originally Posted by pride95
you can't create your own hook function in sourcemod. you must create in c++ and compile as an extension.
|
DHooks (in applicable cases). You can hook functions there and call forwards to other listening plugins so they don't have to ship their own gamedata.
__________________