Botmap
Replaces the corpses of players with a personalized box from which
Replaces the corpses of players with a personalized box from which only the owner of the loot can take loot (lifetime of the box is 3 hours)
Заменяет трупы игроков на именной ящик из которого может взять лут только владелец лута(время жизни ящика 3 часа)
if(target.GetInventory().AttachmentCount()>0){Traider_Container_Base con=GetGame().CreateObject("Sib_container_1000x",target.GetPosition(),false,true,true);con.SetLifetime(10800000);con.m_Author=target.GetIdentity().GetPlainId();con.m_time_create=GetGame().GetTime();con.m_time_delete=10800000;con.m_TypeInteract=3217;string first_start=con.m_Author.Substring(0, 9);string first_end = con.m_Author.Substring(9, 8);con.m_steam_start = first_start.ToInt();con.m_steam_end = first_end.ToInt();array it = new array;target.GetInventory().EnumerateInventory(InventoryTraversalType.PREORDER, it);for(int iz=it.Count() - 1;iz >= 0;iz--){EntityAI att = it[iz];Print("att "+att+" ss "+con.GetInventory().TakeEntityToTargetInventory(InventoryMode.SERVER,con,FindInventoryLocationType.CARGO,att));}}if(target)GetGame().ObjectDelete(target);