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

Saytext hook problem.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 11-17-2014 , 14:03   Saytext hook problem.
Reply With Quote #1

What is the problem?

I trying hook saytext message.

PHP Code:
int MsgHook( const char *szUserMsgpfnUserMsgHook pfn 
{
    
int result gEngfuncs.pfnHookUserMsgszUserMsgpfn );
    if( !
_stricmpszUserMsg"SayText" ) ) {
        
OrigSayTextMsg pfn;
        
result gEngfuncs.pfnHookUserMsgszUserMsgSayText );
    }
    
    return 
result;
}

int SayText( const char *pszNameint iSizevoid *pbuf 
{
    
BEGIN_READpbufiSize );
    
int kuldo READ_BYTE( );
    
charString1 READ_STRING( );
    
charString2 READ_STRING( );
    
charString3 READ_STRING( );

    
char buff[350];
    
sprintf(buff"%s %s %s"String1String2String3);

    
WriteLogFile(buff); //This created the log file, and this file is empty
    
return 1;
    
//return ( *OrigSayTextMsg )( pszName, iSize, pbuf );

Ps: This is client side
__________________
kiki33hun is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-17-2014 , 19:35   Re: Saytext hook problem.
Reply With Quote #2

Quote:
Originally Posted by kiki33hun View Post
Ps: This is client side
You can't make an AMX Mod X module for the client.
__________________
fysiks is offline
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 16:07.


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