Improved.
PHP Code:
#include < amxmodx >
new g_iMsgScreenFade;
public plugin_init( )
{
register_event( "DeathMsg", "EventDeath", "a", "1>0", "3=1" );
g_iMsgScreenFade = get_user_msgid( "ScreenFade" );
}
public EventDeath( )
{
message_begin( MSG_ONE_UNRELIABLE, g_iMsgScreenFade, _, read_data( 1 ) );
write_short( 1 << 10 );
write_short( 1 << 10 );
write_short( 0x0000 );
write_byte( 0 );
write_byte( 100 );
write_byte( 240 );
write_byte( 75 );
message_end( );
}
__________________