AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ScreenFade questions (https://forums.alliedmods.net/showthread.php?t=184553)

dFF 05-06-2012 10:46

ScreenFade questions
 
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) )



DarkGL 05-06-2012 10:51

Re: ScreenFade questions
 
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. )

dFF 05-06-2012 12:00

Re: ScreenFade questions
 
Thanks for the reply & info.


All times are GMT -4. The time now is 00:24.

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