Raised This Month: $12 Target: $400
 3% 

ConsoleHook - A hook for when PrintToConsole is called


Post New Thread Reply   
 
Thread Tools Display Modes
Mitchell
~lick~
Join Date: Mar 2010
Old 12-09-2012 , 00:31   Re: ConsoleHook - A hook for when PrintToConsole is called
Reply With Quote #11

Quote:
Originally Posted by Nano2e View Post
is there a way to do this for tf2?
Does this not work with tf2? I don't see why it wouldn't?
Mitchell is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 12-09-2012 , 00:33   Re: ConsoleHook - A hook for when PrintToConsole is called
Reply With Quote #12

Quote:
Originally Posted by Mitchell View Post
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)
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 12-09-2012 , 09:23   Re: ConsoleHook - A hook for when PrintToConsole is called
Reply With Quote #13

Updated my post with a default gamedata which should support css and all obv games and possibly others (but i havent tested)
Dr!fter is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 12-09-2012 , 15:36   Re: ConsoleHook - A hook for when PrintToConsole is called
Reply With Quote #14

Added BitBucket link to the main post.
Also added a link to Drifter's method in the main post.
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 12-15-2012 , 14:57   Re: ConsoleHook - A hook for when PrintToConsole is called
Reply With Quote #15

Version 1.0.1 is out
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
Apina
AlliedModders Donor
Join Date: May 2013
Old 05-20-2015 , 17:16   Re: ConsoleHook - A hook for when PrintToConsole is called
Reply With Quote #16

Link not work http://vs.gugyclan.eu:8000/job/Conso...uild/artifact/
Apina is offline
client21
Senior Member
Join Date: Apr 2013
Old 01-08-2018 , 19:01  
Reply With Quote #17

Quote:
Originally Posted by Dr!fter View Post
You can do this with dhooks
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.

Last edited by psychonic; 01-12-2018 at 08:01. Reason: merge double-post / bump
client21 is offline
PHHAAKE
Member
Join Date: Aug 2016
Location: Iran
Old 12-06-2018 , 14:27   Re: ConsoleHook - A hook for when PrintToConsole is called
Reply With Quote #18

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?
PHHAAKE is offline
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
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old 08-28-2019 , 01:12   Re: ConsoleHook - A hook for when PrintToConsole is called
Reply With Quote #20

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.
axelnieves2012 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:54.


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