PHP Code:
//#CLIENTSIDE
function onRemotePlayerChats(pl) {
if (pl.account == "whatever") {
if (pl.chat == "death") {
player.chat = "I have been death'd.";
}
}
}
I guess that would work, but you're probably better off going serverside. I don't know exactly what you're trying t odo.