Look in smsdk_config.h and uncomment
Code:
#define SMEXT_ENABLE_PLAYERHELPERS
You can then use playerhelpers->GetGamePlayer, which returns an IGamePlayer pointer.
This is the public version of g_Players / CPlayer.
Quote:
Also, I know about forwarding to plugins, but is it possible the other way around? Can we use natives created by plugins in extensions?
|
No. The point of the extension API is to extend what SourcePawn plugins can do, so that's what the API is designed to expose.
__________________