void cs_DestroyStolenItems(object oPlayer) { object oItem; if (GetIsPC(oPlayer)) { oItem = GetFirstItemInInventory(oPlayer); while (GetIsObjectValid(oItem) == TRUE) { if (GetStolenFlag(oItem) == TRUE) { DestroyObject(oItem); } oItem = GetNextItemInInventory(oPlayer); } for (nCurrentSlot = 0; nCurrentSlot <= NUM_INVENTORY_SLOTS; nCurrentSlot++) { oItem = GetItemInSlot(nCurrentSlot, persona); if (GetIsObjectValid(oItem) && GetStolenFlag(oItem) ) { DestroyObject(oItem); } } } }