NERPATOLUQ, любите вы откапывать мои первые плагины.
Код:
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "Blue Screen"
#define VERSION "1.1"
#define AUTHOR "Stimul"
#define is_valid_player(%1) (1 <= %1 <= g_iMaxPlayers)
#define RED 0
#define GREEN 0
#define BLUE 200
#define ALFA 75
new g_iMsgScreenFade;
new g_iMaxPlayers;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
RegisterHam(Ham_Killed, "player", "fw_PlayerKilled_Post", true);
g_iMsgScreenFade = get_user_msgid("ScreenFade");
g_iMaxPlayers = get_maxplayers();
}
public fw_PlayerKilled_Post(victim, attacker, corpse)
{
if(is_valid_player(attacker) && victim != 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();
}
}