/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <engine>
#include <hamsandwich>

#define PLUGIN "Dead Talk"
#define VERSION "1.0"
#define AUTHOR "Play"


public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_event("DeathMsg", "death", "a")
	RegisterHam(Ham_Spawn, "player", "Spawn", 1)
}
public death()
{
	new id = read_data(2)   
	if(is_user_connected(id))
		set_speak(id,SPEAK_LISTENALL)
}

public Spawn(iPlayer)
{
	if(is_user_connected(iPlayer))
		set_speak(iPlayer,SPEAK_NORMAL)
} 