function Buttons_T(sender,obj_id)
    ButtonTreatment(obj_id,10001,10002,10003,CloseBtnX,CloseBtnY,34,34,sender,"police",false)  
end;

function gameinput (sender,obj_id,attachedID)  
Buttons_T(sender,obj_id)
CursorTreatment(obj_id,sender,attachedID); 
  if sender == 30 then    
      DeleteResource("vaza1" );
      DeleteResource("vaza2" );
      DeleteResource("vaza3" );     
      DeleteResource("vaza4" );       
      DeleteResource("police_kislota" );  
    setcurentleaf("police",4,0);    
    if flags.vaza then
      Set_Anim_Cur(23,3);
      ActivateObject(23,false);
      flags.help_pulja = true;
      StopEmiter("vaza");
    end;
    Block_Show_Cur(false);
  return;end;
  
  if sender==50 then
      
      StartTimer(8881,2);
      Block_Show_Cur(true)
  return;end;
  
  if sender == 1 then

    if obj_id == obj.pulaj.id then
        RemObjFromMouse()
        flags.vaza=true
        playeffect("bullet")
        Set_Anim_Cur(obj.pulaj.id,3)
        StoreObj(obj.kislot.id,obj.pulaj.id,"19",335,350,"kislota",291,239)
    return; end;
    if obj_id == 4 then
        RemObjFromMouse()
        speciale_action(2,4,true);
        speciale_action(2,5,true);
        playeffect("flowers")
        Set_Anim_Cur(4,3)
        speciale_action(2,obj.pulaj.id,true);
        Set_Anim_Cur(obj.pulaj.id,4);
    return; end;
  return ;end;
  

  if sender == 36 then

    if obj_id  == 8881 then
      Block_Show_Cur(false);
      clear_satelite_leaf("police");
    return; end;

  return; end;

end
function SheetSwitched(nCount)
end;