mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-28 06:38:06 +03:00
Fix CS_OnBuyAttempt
If i dont have CS_OnBuy on my plugin, CS_OnBuyAttempt doen't work
This commit is contained in:
parent
b8dd9d19dd
commit
f3df286985
@ -76,7 +76,7 @@ void OnPluginsLoaded()
|
|||||||
if (!UTIL_CheckForPublic("CS_OnBuyAttempt")) { ForwardOnBuyAttempt = -1; }
|
if (!UTIL_CheckForPublic("CS_OnBuyAttempt")) { ForwardOnBuyAttempt = -1; }
|
||||||
|
|
||||||
// And enable/disable detours when necessary.
|
// And enable/disable detours when necessary.
|
||||||
ToggleDetour_ClientCommands(ForwardInternalCommand != -1 || ForwardOnBuy != -1 || ForwardOnBuy != -1);
|
ToggleDetour_ClientCommands(ForwardInternalCommand != -1 || ForwardOnBuy != -1 || ForwardOnBuyAttempt != -1);
|
||||||
ToggleDetour_BuyCommands(ForwardOnBuy != -1);
|
ToggleDetour_BuyCommands(ForwardOnBuy != -1);
|
||||||
|
|
||||||
// Search pev offset automatically.
|
// Search pev offset automatically.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user