You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SMRCon_IsCmdFromRCon() only returns true if all checks and preconditions in WriteDataRequest are fulfilled, which includes that at least one plugin registeres for SMRCon_OnCommand.
If I just want to use SMRCon to block commands from being run though/outside rcon, without additional auth checks or modifications, this is suboptimal. I dont know if g_bInRConCommand should be true thoughout the whole hook, but i think it should be at least true for the case without SMRCon_OnCommand callbacks. That way I dont have to add an empty SMRCon_OnCommand.
Thank you for reading 😄
The text was updated successfully, but these errors were encountered:
SMRCon_IsCmdFromRCon()
only returns true if all checks and preconditions inWriteDataRequest
are fulfilled, which includes that at least one plugin registeres forSMRCon_OnCommand
.If I just want to use SMRCon to block commands from being run though/outside rcon, without additional auth checks or modifications, this is suboptimal. I dont know if
g_bInRConCommand
should be true thoughout the whole hook, but i think it should be at least true for the case withoutSMRCon_OnCommand
callbacks. That way I dont have to add an emptySMRCon_OnCommand
.Thank you for reading 😄
The text was updated successfully, but these errors were encountered: