chat(
0, ...
That means it's sent to all players, I guess your chat() function is a copy of colorchat or something, and first arg is the player ID.
So, you must do a loop and see wich player is on player's team and send'em the message.
You could either use get_players() function (I understand it's buggy) or just a for() loop and check stuff.
Also, create a variable to hold is_user_alive() if you use the loop... and also, you can do this:
Code:
chat(0, "!team[Team] *%s* !g%s !y: !team%s", (alive ? "ALIVE" : "DEAD"), name, mes);
__________________