#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN_NAME    "First Person Death"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR  "Numb"

#define SPECMODE_ALIVE 0

public plugin_init()
{
	register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
	
	RegisterHam(Ham_Killed, "player", "Ham_Killed_player_Post", 1);
}

public Ham_Killed_player_Post(iPlrId, iIdattacker, iShouldGib)
{
	client_cmd(iPlrId, "spk fvox/flatline");
	set_pev(iPlrId, pev_iuser1, SPECMODE_ALIVE);
	
	return HAM_IGNORED;
}
