You could probably write something for it but you'd have to be pretty good. Hackshield prevents emulations and such (I'm no IT guy lol), with that being said, you'd probably need an injected script (injects into the mainframe of the game) which would require you to crack the hackshield, which is not happening lol. The only thing I could imagine(this is just a wild idea) is that you'd write a script based on your screens colour, not requiring you to inject into the client. This way the script would alert you if you'd die because you'd end up at a bindstone which would have a different enviromental colour than your grinding spot, I have however no idea how hard it is to write such a script since I'm pretty bad at programming.
It's more likely the guy actually was semi-sleeping and saw he died (lookin at his screen from a distance). comming back to his PC and saying ''kk, back to sleep'' since he'd actually go back to sleep.