AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   ConsoleHook - A hook for when PrintToConsole is called (https://forums.alliedmods.net/showthread.php?t=201659)

Mitchell 12-09-2012 00:31

Re: ConsoleHook - A hook for when PrintToConsole is called
 
Quote:

Originally Posted by Nano2e (Post 1850560)
is there a way to do this for tf2?

Does this not work with tf2? I don't see why it wouldn't?

minimoney1 12-09-2012 00:33

Re: ConsoleHook - A hook for when PrintToConsole is called
 
Quote:

Originally Posted by Mitchell (Post 1850695)
Does this not work with tf2? I don't see why it wouldn't?

The current compiled binary is not for Source 2009. (With the _srv suffix added to the server binaries it wont load)

Dr!fter 12-09-2012 09:23

Re: ConsoleHook - A hook for when PrintToConsole is called
 
Updated my post with a default gamedata which should support css and all obv games and possibly others (but i havent tested)

minimoney1 12-09-2012 15:36

Re: ConsoleHook - A hook for when PrintToConsole is called
 
Added BitBucket link to the main post.
Also added a link to Drifter's method in the main post.

minimoney1 12-15-2012 14:57

Re: ConsoleHook - A hook for when PrintToConsole is called
 
Version 1.0.1 is out

Apina 05-20-2015 17:16

Re: ConsoleHook - A hook for when PrintToConsole is called
 
Link not work http://vs.gugyclan.eu:8000/job/Conso...uild/artifact/

client21 01-08-2018 19:01

Quote:

Originally Posted by Dr!fter (Post 1849365)
You can do this with dhooks :3

I tested your code with command "sm" in css (windows and linux). Why it not work?
I thought bad offset, but offset correct.

45 CVEngineServer::ClientPrintf(edict_t *,char const*) // i tryed and 44 on windows - too not work

and CVEngineServer22
173 CVEngineServer::ClientPrintf(edict_t *,char const*)

No help? Nice. Good dhook extenison, even your example code not work.

PHHAAKE 12-06-2018 14:27

Re: ConsoleHook - A hook for when PrintToConsole is called
 
why console hook wont load in my servers?
i have a plugin that need console hook
[Plugin Name] failed to load: Required extension "consolehook" file("consolehook.ext") not running.

Why?

SHUFEN 03-29-2019 10:32

Re: ConsoleHook - A hook for when PrintToConsole is called
 
Quote:

Originally Posted by Dr!fter (Post 1849365)
You can do this with dhooks :3

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?

axelnieves2012 08-28-2019 01:12

Re: ConsoleHook - A hook for when PrintToConsole is called
 
Does it work on Windows?
Does it work on l4d1?

There are three plugins that spams my console every 0.1 second and don't let me read anything.


All times are GMT -4. The time now is 10:42.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.