Cant catch commands...
Code:
class myadmin : public IServerPluginCallbacks, public IGameEventListener { |
I think Alfred mentioned in hlcoders that this was not working right.
I could be wrong. You might have to use the CON_COMMAND() interface to do it or register a cvar as a client variable... he talked about it. |
Ah, ok.
I'll try that. The weird thing is, I see the event firing in the base empty plugin. I can't get it to fire in mine though :/ |
Probably because the arg isn't passed (at all?) correctly into the function?
:gyar: |
Nm. Stupid mistake, forgot:
EXPOSE_SINGLE_INTERFACE_GLOBALVAR(myadmin, IServerPluginCallbacks, INTERFACEVERSION_ISERVERPLUGINCALLBACKS, g_Admin); |
Quote:
|
g_Admin would be his global instantiation of myadmin
|
Quote:
Ill have to comeup with an admin class to test it out. Thanks |
Quote:
|
Yea I started to create my own project and couldn't get it to work so I used the empty plugin and renamed everything.
Device did you have to add all the header files that were in the emptyplugin to your new project? |
All times are GMT -4. The time now is 06:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.