i have a leave hook
is it possible to know if they player disconnected when alive, or when dead (or in spect)
cause i would like to have somheting to tell if player was alive or not
thx
addhook("leave","health_check") function health_check(id) 	if player(id,"health")==0 then 		msg2(id,"©255255000"..player(id,"name").." disconnected while DEAD!") 		return 0 	elseif player(id,"health")>=0 then 		msg2(id,"©255255000"..player(id,"name").." disconnected while ALIVE!") 		return 0 	end end
addhook("leave","health_check") function health_check(id) 	local p_hp = player(id,"health") 	local p_nm = player(id,"name") 	if p_hp==0 then 		msg([[©255255000"..p_nm.." disconnected while DEAD!]]) 	return 0 	elseif p_hp>=0 then 		msg([[©255255000"..p_nm.." disconnected while ALIVE but injured to "..p_hp.." health!]]) 	return 0 	end end