loadresource("data\\4\\4\\0004.png","shkaf_police1" ,1 );
loadresource("data\\4\\4\\shkaf_police.png","shkaf_police" ,3 );

loadresource("data\\4\\4\\0011.jpg","shkaf_police8" ,8 );

loadresource("data\\inventary\\rujjo.png","police0" ,8 );


AddObjForCur()

-- Corners={}
-- Corners["xl"]=274
-- Corners["yl"]=147
-- Corners["xr"]=274+593
-- Corners["yr"]=147+458


NewObj("vint","police0",5000,5000,"49",nil,nil,nil,nil,"2003");

addstaticobjecttogame( 3,"shkaf_police1" ,275,147,""); --рамка
CloseBtnX,CloseBtnY=Coords(3)


SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);


addactivobjecttogame( 5,"shkaf_police" ,284,371,"","",0,0,0,402,522,170); --фомка2
speciale_action(2,5);
addstaticobjecttogame( 6,"shkaf_police" ,354,157,"",630,419,195,421); --открытая дверка
if not flags.shkaf_pol_open then
speciale_action(2,6);
end;
addstaticobjecttogame( 7,"shkaf_police" ,356,157,"",319,0,311,402); --приоткрытая дверка
speciale_action(2,7);
addactivobjecttogame( 8,"shkaf_police" ,357,157,"","",0,0,0,0,319,402); --закрытая дверка
Set_Anim_Cur(8,4)
if flags.shkaf_pol_open then
speciale_action(2,8);
end;
NewObj("phoot","shkaf_police" ,398,127,"49",630,0,285,419); --стопка фото
if not flags.shkaf_pol_open then
speciale_action(2,obj.phoot.id);
end;
if flags.shkaf_pol_open then
Set_Anim_Cur(obj.photo.id,4)
end;
addstaticobjecttogame(10,"shkaf_police8" ,284,157,"",0,0,573,438); --фон

  if s_obj>0 then
  AddObjToMouse(s_obj)
  s_obj=0
  end;
WaitRender();