так там исчезает флеш после убийства
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "Blue Screen"
#define VERSION "1.2"
#define AUTHOR "Stimul"
#define is_valid_player(%1) (1 <= %1 <= g_iMaxPlayers)
#define MAX_CLIENTS 32
#define RED 0
#define GREEN 0
#define BLUE 255
#define ALFA 75
new Float:g_fTimeGlare[MAX_CLIENTS+1];
new g_iMsgScreenFade;
new g_iMaxPlayers;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("ScreenFade", "EventScreenFade", "b", "4=255", "5=255", "6=255");
RegisterHam(Ham_Killed, "player", "fw_PlayerKilled_Post", true);
g_iMsgScreenFade = get_user_msgid("ScreenFade");
g_iMaxPlayers = get_maxplayers();
}
public EventScreenFade(id)
g_fTimeGlare[id] = read_data(1) / 4096.0 + get_gametime();
public fw_PlayerKilled_Post(victim, attacker, corpse)
{
if(is_valid_player(attacker) && victim != attacker)
{
if(get_gametime() >= g_fTimeGlare[attacker])
{
message_begin(MSG_ONE_UNRELIABLE, g_iMsgScreenFade, _, attacker);
write_short(1<<10);
write_short(1<<10);
write_short(0x0000);
write_byte(RED);
write_byte(GREEN);
write_byte(BLUE);
write_byte(ALFA);
message_end();
}
}
}