Code
#include < amxmodx >
#include < fun >
#include < engine >
#include < cstrike >
new g_pNoFlash;
new g_iMsgScreenFade;
public plugin_init() {
register_plugin( "ter noflash","1.0", "Juice" );
g_pNoFlash = register_cvar( "hns_noflash", "1" );
g_iMsgScreenFade = get_user_msgid( "ScreenFade" );
register_message( g_iMsgScreenFade, "msgScreenFade" );
}
public msgScreenFade( iMsgId, iMsgDest, id )
{
if( get_msg_arg_int( 4 ) == 255 && get_msg_arg_int( 5 ) == 255 && get_msg_arg_int( 6 ) == 255 )
{
if( cs_get_user_team( id ) == CS_TEAM_T && get_pcvar_num( g_pNoFlash ) )
{
return PLUGIN_HANDLED;
}
}
return PLUGIN_CONTINUE;
}