View Single Post
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 11-25-2012 , 19:33   Re: ConsoleHook - A hook for when PrintToConsole is called
Reply With Quote #7

Quote:
Originally Posted by Mitchell View Post
so like a developer could change a text that is printed to console?
What im wondering is if this is just used on PrintToConsole, or if you can stop "Player killed Player2." messages in console.
It uses SourceHook to hook IVEngineServer::ClientPrintf, so anything sending a message through that will be hooked, and if it's not hooked, you can simply hook the "TextMsg" usermessage and check if the first byte is HUD_PRINTCONSOLE (which is 2), and you have hooked both of the methods that text could be passed on to a client's console (serverside).
__________________
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

Last edited by minimoney1; 11-25-2012 at 19:37.
minimoney1 is offline