mob/verb/Say(T as text)
set hidden = 1
if(src in DeadChannel)
DeadChannel << "<b><font color=red>(Dead)</b></font color> <b><font color=purple>[usr]: <font color=black><b>[T]"
else
world << "<b><font color=red>(Alive)</b></font color> <b><font color=purple>[usr]: <font color=black><b>[T]"
Problem description:
For some reason this isn't working. I have a code set-up for when the player dies they're added to the DeadChannel list and can only communicate with others from the DeadChannel, but for some reason the chat still shows up with the Alive in brackets and still broadcasts to living players.
I have a feeling it's such an obvious issue, but I've been racking my brain since last night.
mob/proc/DeathCheck(M)
src.Health = 0
src.MaxHealth = 100
src.icon_state="dead"
src.verbs+=(/mob/Death/verb/Spectate)
src.movestop=1
src.Alive = 0
world<<"<font color=red><b><BIG>[src.key] has been killed!"
Alive -= 1
DeadChannel += src
if (!DeadChannel) DeadChannel = list()