Block Command
Can with ReApi block a command in console ?
With Orpheu its same
OrpheuGetFunction( "Cmd_TokenizeString" ), "Cmd_TokenizeString" )
Thx !
Why do you need that? AMXX already provides a way to block cmd. (register_clcmd -> return PLUGIN_HANDLED)
No I need block a command in console .. for example "asd 1"
There is a forward for it in amxx
On Tue, Mar 20, 2018, 21:15 JorgeTeddd [email protected] wrote:
No I need block a command in console .. for example "asd 1"
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/s1lentq/reapi/issues/104#issuecomment-374681557, or mute the thread https://github.com/notifications/unsubscribe-auth/ASb5qDqqhPrWaWqvV5z7GnE-zmDkP4bmks5tgTk8gaJpZM4SxLGA .
Example ? please ?
Google? Please? https://www.amxmodx.org/api/amxmodx/client_command
No sorry
I need this, its an example
[code]
#include
public plugin_init() { RegisterHookChain(RG_CBasePlayer_CommandConsole, "CBasePlayer_CommandInConsoleByPlayer"); }
public CBasePlayer_CommandInConsoleByPlayer( command[ ] ) { if(containi(Buffer, "[sXe-I-SSD-Reply] ") != -1){ return HC_BREAK; }
return HC_CONTINUE;
} [/code]
Its an exploit with Sxe-Injected
With Orpheu i can fix this (In HLDS), but Orpheu in ReHlds Not work _Z18Cmd_TokenizeStringPc
@JorgeTeddd talks about that fix with orpheu