reapi icon indicating copy to clipboard operation
reapi copied to clipboard

Block Command

Open JorgeTeddd opened this issue 7 years ago • 7 comments

Can with ReApi block a command in console ?

With Orpheu its same

OrpheuGetFunction( "Cmd_TokenizeString" ), "Cmd_TokenizeString" )

Thx !

JorgeTeddd avatar Mar 20 '18 01:03 JorgeTeddd

Why do you need that? AMXX already provides a way to block cmd. (register_clcmd -> return PLUGIN_HANDLED)

In-line avatar Mar 20 '18 03:03 In-line

No I need block a command in console .. for example "asd 1"

JorgeTeddd avatar Mar 20 '18 17:03 JorgeTeddd

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 .

In-line avatar Mar 20 '18 17:03 In-line

Example ? please ?

JorgeTeddd avatar Mar 20 '18 21:03 JorgeTeddd

Google? Please? https://www.amxmodx.org/api/amxmodx/client_command

In-line avatar Mar 21 '18 03:03 In-line

No sorry

I need this, its an example

[code] #include #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 avatar Mar 24 '18 18:03 JorgeTeddd

@JorgeTeddd talks about that fix with orpheu

WaLkZa avatar Mar 24 '18 19:03 WaLkZa