View Single Post
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-10-2012 , 18:26   Re: Access SourceMod core?
Reply With Quote #2

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.
__________________

Last edited by asherkin; 06-10-2012 at 18:28.
asherkin is offline