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_message( g_iMsgScreenFade, "message_screenfade" )
}
public message_screenfade( msg_id, msg_dest, msg_entity )
{
client_print( msg_entity, print_chat, "%f", get_pdata_float( msg_entity, 517, 5 ) )
}