void main() { object oPC = GetExitingObject(); if (GetCurrentHitPoints(oPC) > 0) return; //anti-cheat item CreateItemOnObject("death", oPC, 1); }