1.1 --- a/core/PlayerManager.cpp Thu Sep 17 13:08:18 2009 -0400
1.2 +++ b/core/PlayerManager.cpp Sat Sep 26 17:12:23 2009 -0400
1.3 @@ -48,6 +48,7 @@
1.4 #include "GameConfigs.h"
1.5 #include "ExtensionSys.h"
1.6 #include <sourcemod_version.h>
1.7 +#include "ConsoleDetours.h"
1.8
1.9 PlayerManager g_Players;
1.10 bool g_OnMapStarted = false;
1.11 @@ -725,6 +726,20 @@
1.12 }
1.13 }
1.14
1.15 + if (g_ConsoleDetours.IsEnabled())
1.16 + {
1.17 + cell_t res2 = g_ConsoleDetours.InternalDispatch(client, args);
1.18 + if (res2 >= Pl_Stop)
1.19 + {
1.20 + g_HL2.PopCommandStack();
1.21 + RETURN_META(MRES_SUPERCEDE);
1.22 + }
1.23 + else if (res2 > res)
1.24 + {
1.25 + res = res2;
1.26 + }
1.27 + }
1.28 +
1.29 cell_t res2 = Pl_Continue;
1.30 m_clcommand->PushCell(client);
1.31 m_clcommand->PushCell(argcount);