View Single Post
SHUFEN
Senior Member
Join Date: Jun 2014
Location: Japan, Tokyo
Old 03-29-2019 , 10:32   Re: ConsoleHook - A hook for when PrintToConsole is called
Reply With Quote #19

Quote:
Originally Posted by Dr!fter View Post
You can do this with dhooks

clientprintf-hook.games.txt


clientprintf-hook.sp


Requires DHooks and latest SM 1.5 snapshot.

Of course the drawback to using DHooks is you need gamedata and code to grab the engine pointer. But felt this would be helpful example. The example only supports csgo and css but only tested on css.
New gamedata is here:

PHP Code:
"csgo"
    
{
        
"Keys"
        
{
            
"EngineInterface"    "VEngineServer023"
        
}
        
"Offsets"
        
{
            
"ClientPrintf"
            
{
                
"windows"    "47"
                "linux"        "47"
            
}
        }
    } 
Btw, plugin make crashes when "return MRES_ChangedHandled;"
Any idea?
SHUFEN is offline
Send a message via Skype™ to SHUFEN