Raised This Month: $ Target: $400
 0% 

ScreenFade questions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 05-06-2012 , 10:46   ScreenFade questions
Reply With Quote #1

I create some custom ScreenFade message with custom flags like FFADE_IN, FFADE_OUT, and FFADE_STAYOUT. And now I try to hook in other plugin when ScreenFade message is sent to the player, but not work.

Here is a partial code:
PHP Code:
new g_iMsgScreenFade

public plugin_init()
{
    
g_iMsgScreenFade get_user_msgid"ScreenFade" )
    
register_messageg_iMsgScreenFade"message_screenfade" )
}

public 
message_screenfademsg_idmsg_destmsg_entity )
{
    
client_printmsg_entityprint_chat"%f"get_pdata_floatmsg_entity517) )

dFF is offline
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 05-06-2012 , 10:51   Re: ScreenFade questions
Reply With Quote #2

If you use message_begin it cannot be hooked by other plugin you must use emessage_begin and other function with e* ( ewrite_byte etc. )
__________________
DarkGL is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 05-06-2012 , 12:00   Re: ScreenFade questions
Reply With Quote #3

Thanks for the reply & info.
dFF is offline
Old 05-07-2012, 02:24
awpvssniper
This message has been deleted by Exolent[jNr]. Reason: Cross-post.
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 00:24.


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