Hey so looking at the code I found some issues:
else if(%sec == 1000)
messageServer("10 minutes remaining.. (loving long)"); <-- Also I wouldn't include this in the future
else if(%sec == 500)
messageServer("5 minutes remaining..");
These are off. 1000 seconds is not 10 minutes, and 500 seconds is not 5 minutes. 10 * 60 seconds = 600 is 10 minutes, and 5 * 60 seconds = 300 is 5 minutes.
%client.schedule(3000,play2D, %client.isMurder ? 21 : alarmSound); This doesn't make any sense to play an object ID that could be something else (21).
Looks like you left a little debug code lol
echo("Here is the corpse " @ $corpses[$corp_n-1]);
Well, you broke OnDeath completely (has more args than this) unless this was intentional.
function GameConnection::onDeath(%client)