Raised This Month: $ Target: $400
 0% 

Cannot hook ClientPrint?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 01-26-2010 , 16:04   Cannot hook ClientPrint?
Reply With Quote #1

How to hook UTIL_ClientPrint function ?
__________________
Join US - custom Zombie Server - Custom Addons:




Last edited by Sn!ff3r; 01-26-2010 at 16:09.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-26-2010 , 16:14   Re: Cannot hook ClientPrint?
Reply With Quote #2

= TextMsg event. So hook this event.
__________________
Arkshine is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 01-26-2010 , 16:22   Re: Cannot hook ClientPrint?
Reply With Quote #3

Hm. Sorry, my description is not enough.

I want to hook all text's printed by client_print amxmodx function (UTIL_ClientPrint by metamod).
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Drak
Veteran Member
Join Date: Jul 2005
Old 01-26-2010 , 19:19   Re: Cannot hook ClientPrint?
Reply With Quote #4

He's right. client_print is a wrapper for the message "TestMsg".
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-26-2010 , 19:21   Re: Cannot hook ClientPrint?
Reply With Quote #5

I think client_print sends the TextMsg event straight to the engine so it isn't possible to be hooked.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 01-27-2010 , 16:23   Re: Cannot hook ClientPrint?
Reply With Quote #6

del
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Reply



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:18.


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